1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 20:11:00 +00:00

feat(core/ui): continue after viewing all data

This commit is contained in:
Ioan Bizău 2024-11-15 12:17:43 +01:00 committed by Martin Milata
parent 04c89555cd
commit dbd5b62272
3 changed files with 7 additions and 9 deletions

View File

@ -0,0 +1 @@
[T3B1] Add "continue" button after scrolling through the whole blob.

View File

@ -600,7 +600,7 @@ async def _confirm_ask_pagination(
confirm_more_layout = trezorui2.confirm_more( confirm_more_layout = trezorui2.confirm_more(
title=title, title=title,
button="GO BACK", button=TR.buttons__confirm,
items=[(ui.BOLD_UPPER, f"Size: {len(data)} bytes"), (ui.MONO, data)], items=[(ui.BOLD_UPPER, f"Size: {len(data)} bytes"), (ui.MONO, data)],
) )
@ -614,9 +614,11 @@ async def _confirm_ask_pagination(
): ):
return return
await interact(confirm_more_layout, br_name, br_code, raise_on_cancel=None) result = await interact(confirm_more_layout, br_name, br_code, None)
if result is trezorui2.CANCELLED:
assert False continue
else:
break
def confirm_address( def confirm_address(

View File

@ -371,11 +371,6 @@ class EthereumFlow:
go_next(self.debug) go_next(self.debug)
self.debug.read_layout() self.debug.read_layout()
if self.debug.layout_type is LayoutType.TR:
# TR is going back to the "show more" screen here
assert (yield).name == "confirm_data"
self.debug.press_yes()
def paginate_data_go_back(self) -> BRGeneratorType: def paginate_data_go_back(self) -> BRGeneratorType:
br = yield br = yield
assert br.name == "confirm_data" assert br.name == "confirm_data"