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:
parent
04c89555cd
commit
dbd5b62272
1
core/.changelog.d/4302.added.3
Normal file
1
core/.changelog.d/4302.added.3
Normal file
@ -0,0 +1 @@
|
||||
[T3B1] Add "continue" button after scrolling through the whole blob.
|
@ -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(
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user