From f62acbe72591be8790ecb5bf66d39c5fa6fb1595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Fri, 15 Nov 2024 12:17:43 +0100 Subject: [PATCH] feat(core/ui): continue after viewing all data [no changelog] --- core/src/trezor/ui/layouts/tr/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/trezor/ui/layouts/tr/__init__.py b/core/src/trezor/ui/layouts/tr/__init__.py index db164814ec..d652fd3b39 100644 --- a/core/src/trezor/ui/layouts/tr/__init__.py +++ b/core/src/trezor/ui/layouts/tr/__init__.py @@ -614,7 +614,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)], ) @@ -628,9 +628,11 @@ async def _confirm_ask_pagination( ): return - await interact(confirm_more_layout, br_name, br_code, raise_on_cancel=None) - - assert False + try: + await raise_if_not_confirmed(confirm_more_layout, br_name, br_code) + break + except ActionCancelled: + continue if not utils.BITCOIN_ONLY: