mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
feat(python/debuglink): auto-page on pageable screens
This commit is contained in:
parent
4f0aca7bb5
commit
d047c98cb2
1
python/.changelog.d/1671.added
Normal file
1
python/.changelog.d/1671.added
Normal file
@ -0,0 +1 @@
|
||||
Debuglink can automatically scroll through paginated views.
|
@ -234,6 +234,12 @@ class DebugUI:
|
||||
if self.input_flow is None:
|
||||
if br.code == messages.ButtonRequestType.PinEntry:
|
||||
self.debuglink.input(self.get_pin())
|
||||
elif (
|
||||
br.pages is not None
|
||||
and br.page_number is not None
|
||||
and br.pages > br.page_number
|
||||
):
|
||||
self.debuglink.swipe_up()
|
||||
else:
|
||||
self.debuglink.press_yes()
|
||||
elif self.input_flow is self.INPUT_FLOW_DONE:
|
||||
|
Loading…
Reference in New Issue
Block a user