Merge pull request #750 from alvroble/bugfix/toast_timing_issue

[Bugfix] Remove unnecessary sleep time in `toast.py` to speed up Screenshot Generator
This commit is contained in:
Nick Klockenga
2025-10-19 21:42:39 -04:00
committed by GitHub
-1
View File
@@ -137,7 +137,6 @@ class BaseToastOverlayManagerThread(BaseThread):
def run(self): def run(self):
logger.info(f"{self.__class__.__name__}: started") logger.info(f"{self.__class__.__name__}: started")
start = time.time() start = time.time()
time.sleep(0.2)
while time.time() - start < self.activation_delay: while time.time() - start < self.activation_delay:
if self.hw_inputs.has_any_input(): if self.hw_inputs.has_any_input():
# User has pressed a button, cancel the toast # User has pressed a button, cancel the toast