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:
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(
|
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(
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user