|
6 | 6 | from embit.psbt import PSBT |
7 | 7 | from PIL.Image import Image |
8 | 8 |
|
9 | | -from seedsigner.extras.dev import SIMULATE_MODE |
10 | 9 | from seedsigner.gui.toast import BaseToastOverlayManagerThread |
11 | 10 | from seedsigner.models.psbt_parser import PSBTParser |
12 | 11 | from seedsigner.models.seed import Seed |
@@ -73,8 +72,7 @@ def time_import(module_name): |
73 | 72 | Controller.get_instance()._storage = SeedStorage() |
74 | 73 |
|
75 | 74 | time_import('numpy') # used by PiVideoStream; by far the slowest import (2.29s) |
76 | | - if not SIMULATE_MODE: |
77 | | - time_import('seedsigner.hardware.pivideostream') |
| 75 | + time_import('seedsigner.hardware.pivideostream') |
78 | 76 |
|
79 | 77 | # Get MainMenuView ready to respond quickly |
80 | 78 | time_import('seedsigner.views.scan_views') |
@@ -293,11 +291,10 @@ def run(self): |
293 | 291 | next_destination = Destination(MainMenuView) |
294 | 292 |
|
295 | 293 | # Set up our one-time toast notification tip to remove the SD card |
296 | | - if not SIMULATE_MODE: |
297 | | - if self.settings.get_value(SettingsConstants.SETTING__MICROSD_TOAST_TIMER) == SettingsConstants.MICROSD_TOAST_TIMER_FIVE_SECONDS: |
298 | | - self.activate_toast(RemoveSDCardToastManagerThread()) |
299 | | - elif self.settings.get_value(SettingsConstants.SETTING__MICROSD_TOAST_TIMER) == SettingsConstants.MICROSD_TOAST_TIMER_FOREVER: |
300 | | - next_destination = Destination(RemoveMicroSDWarningView) |
| 294 | + if self.settings.get_value(SettingsConstants.SETTING__MICROSD_TOAST_TIMER) == SettingsConstants.MICROSD_TOAST_TIMER_FIVE_SECONDS: |
| 295 | + self.activate_toast(RemoveSDCardToastManagerThread()) |
| 296 | + elif self.settings.get_value(SettingsConstants.SETTING__MICROSD_TOAST_TIMER) == SettingsConstants.MICROSD_TOAST_TIMER_FOREVER: |
| 297 | + next_destination = Destination(RemoveMicroSDWarningView) |
301 | 298 |
|
302 | 299 | while True: |
303 | 300 | # Destination(None) is a special case; render the Home screen |
|
0 commit comments