mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-06 07:28:24 +00:00
Updating to latest approach
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user