Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions actions/RunCommand/RunCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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):
Expand Down