mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
feat(debuglink): extend default input_flow
- mercury: confirm PromptScreen if it is directly after SwipeContent, typical for a simple ConfirmAction SwipeFlow
This commit is contained in:
parent
9c72598409
commit
5181685c88
@ -865,6 +865,10 @@ class DebugUI:
|
||||
self.debuglink.press_yes()
|
||||
elif "SwipeContent" in layout.all_components():
|
||||
self.debuglink.swipe_up()
|
||||
# Pressing Yes again if there is a prompt
|
||||
layout = self.debuglink.read_layout()
|
||||
if "PromptScreen" in layout.all_components():
|
||||
self.debuglink.press_yes()
|
||||
else:
|
||||
self.debuglink.press_yes()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user