Revert Toast changes

I instead submitted them as a PR to the main repo's `dev` branch: https://github.com/SeedSigner/seedsigner/pull/613
This commit is contained in:
kdmukai
2024-09-21 12:06:47 -05:00
parent 128181dd7a
commit 65f99b89cc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -186,12 +186,12 @@ class BaseToastOverlayManagerThread(BaseThread):
class RemoveSDCardToastManagerThread(BaseToastOverlayManagerThread):
def __init__(self, activation_delay=3, duration=1e6):
def __init__(self, activation_delay=3):
# Note: activation_delay is configurable so the screenshot generator can get the
# toast to immediately render.
super().__init__(
activation_delay=activation_delay, # seconds
duration=duration, # seconds ("forever")
duration=1e6, # seconds ("forever")
)
+1 -1
View File
@@ -132,7 +132,7 @@ def test_generate_screenshots(target_locale):
MainMenuView,
(MainMenuView, {}, 'MainMenuView_SDCardStateChangeToast_removed', SDCardStateChangeToastManagerThread(action=MicroSD.ACTION__REMOVED)),
(MainMenuView, {}, 'MainMenuView_SDCardStateChangeToast_inserted', SDCardStateChangeToastManagerThread(action=MicroSD.ACTION__INSERTED)),
(MainMenuView, {}, 'MainMenuView_RemoveSDCardToast', RemoveSDCardToastManagerThread(activation_delay=0, duration=0)),
(MainMenuView, {}, 'MainMenuView_RemoveSDCardToast', RemoveSDCardToastManagerThread(activation_delay=0)),
PowerOptionsView,
RestartView,
PowerOffView,