Updating to latest approach

This commit is contained in:
kdmukai
2023-02-27 21:08:38 -06:00
parent 5a1c4b73de
commit 1aeef3f7ee
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -71,9 +71,6 @@ class SeedsMenuView(View):
Loading seeds, passphrases, etc
****************************************************************************"""
class LoadSeedView(View):
Screen_cls: Type[BaseScreen] = ButtonListScreen
def run(self):
SEED_QR = (" Scan a SeedQR", FontAwesomeIconConstants.QRCODE)
TYPE_12WORD = ("Enter 12-word seed", FontAwesomeIconConstants.KEYBOARD)
@@ -87,6 +84,7 @@ class LoadSeedView(View):
]
selected_menu_num = self.run_screen(
ButtonListScreen,
title="Load A Seed",
is_button_text_centered=False,
button_data=button_data
+1 -1
View File
@@ -32,7 +32,7 @@ def run_flow_sequence(initial_destination: Destination, return_values: List[Unio
if RUN_BEFORE in return_value:
run_before = return_value[RUN_BEFORE]
# Patch the run_screen so we don't actually instantiate and execute the Screen_cls
# Patch the run_screen so we don't actually instantiate and execute the Screen
qualname = ".".join([next_destination.View_cls.__module__, next_destination.View_cls.__name__])
with patch(qualname + ".run_screen") as mock_run_screen:
mock_run_screen.return_value = return_value