1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-31 18:40:56 +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(
title=title,
button="GO BACK",
button=TR.buttons__confirm,
items=[(ui.BOLD_UPPER, f"Size: {len(data)} bytes"), (ui.MONO, data)],
)
@ -614,9 +614,11 @@ async def _confirm_ask_pagination(
):
return
await interact(confirm_more_layout, br_name, br_code, raise_on_cancel=None)
assert False
result = await interact(confirm_more_layout, br_name, br_code, None)
if result is trezorui2.CANCELLED:
continue
else:
break
def confirm_address(

View File

@ -371,11 +371,6 @@ class EthereumFlow:
go_next(self.debug)
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:
br = yield
assert br.name == "confirm_data"