From 23d658cd15a88f22be7688531bf74c25a64742ba Mon Sep 17 00:00:00 2001 From: ColetteDiskette <50379440+ColetteDiskette@users.noreply.github.com> Date: Thu, 11 Jun 2026 07:18:59 -0700 Subject: [PATCH 1/2] Fix timer restart condition in RunCommand.py The timer is a one-shot timer and was previously only being reset when the deck was on the page the button was on *and* "Keep auto running in background" was disabled. Changing this `and not` to an `or` makes it so that it resets when on its page *or* "Keep auto running ..." is enabled. --- actions/RunCommand/RunCommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/RunCommand/RunCommand.py b/actions/RunCommand/RunCommand.py index 1938002..b6ea284 100644 --- a/actions/RunCommand/RunCommand.py +++ b/actions/RunCommand/RunCommand.py @@ -71,7 +71,7 @@ def execute(self, restart_timer: bool = False): self.set_center_label(result) if restart_timer: - if self.get_is_present() and not settings.get("keep_auto_run_in_background", False): #TODO: Find a better solution + if self.get_is_present() or settings.get("keep_auto_run_in_background", False): self.start_timer() def get_config_rows(self): From 22c6e483df9d67f1f95d242a3a8167012bbfa288 Mon Sep 17 00:00:00 2001 From: ColetteDiskette <50379440+ColetteDiskette@users.noreply.github.com> Date: Thu, 11 Jun 2026 07:40:58 -0700 Subject: [PATCH 2/2] Fix timer no longer starting after button press in RunCommand.py Manually triggering the command with a button press would result in auto-run no longer triggering. Restarting the timer when the button is pressed prevents this. --- actions/RunCommand/RunCommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/RunCommand/RunCommand.py b/actions/RunCommand/RunCommand.py index b6ea284..6b84f75 100644 --- a/actions/RunCommand/RunCommand.py +++ b/actions/RunCommand/RunCommand.py @@ -60,7 +60,7 @@ def event_callback(self, event, data): if self.auto_run_timer is not None: self.stop_timer() elif event == Input.Key.Events.SHORT_UP: - self.execute() + self.execute(restart_timer=self.get_settings().get("auto_run", 0) > 0) def execute(self, restart_timer: bool = False): self.stop_timer()