Skip to content

Commit

Permalink
Revert Toast changes
Browse files Browse the repository at this point in the history
I instead submitted them as a PR to the main repo's `dev` branch: SeedSigner#613
  • Loading branch information
kdmukai committed Sep 21, 2024
1 parent 128181d commit 65f99b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/seedsigner/gui/toast.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ def run(self):


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")
)


Expand Down
2 changes: 1 addition & 1 deletion tests/screenshot_generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def setup_screenshots(locale: str) -> dict:
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,
Expand Down

0 comments on commit 65f99b8

Please sign in to comment.