Skip to content

Commit 7777ebe

Browse files
committed
fix for main menu redraw (works for bot simulator and real thing)
1 parent 075ed44 commit 7777ebe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

shared/actions.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,11 +1910,10 @@ async def usb_keyboard_emulation(enable):
19101910
# just sets emu flag on and adds Entry Password into top menu
19111911
# no USB switching at this point
19121912
# - need to force reload of main menu, so it shows/hides
1913-
if ckcc.is_simulator():
1914-
goto_top_menu()
1915-
else:
1916-
m = the_ux.top_of_stack()
1917-
m.update_contents()
1913+
from flow import NormalSystem
1914+
for item in the_ux.stack:
1915+
if "Ready To Sign" in [i.label for i in item.items]:
1916+
item.replace_items(NormalSystem)
19181917

19191918
async def change_nfc_enable(enable):
19201919
# NFC enable / disable

0 commit comments

Comments
 (0)