mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user