From 53799cdee8d88549de3eef071d58fb4a07eeb7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Thu, 25 Jul 2024 16:11:34 +0200 Subject: [PATCH] fix(core/ui): fix cancel in ethereum sign tx flow [no changelog] --- .../src/trezor/ui/layouts/mercury/__init__.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/src/trezor/ui/layouts/mercury/__init__.py b/core/src/trezor/ui/layouts/mercury/__init__.py index 9ff4ef6795..7a519d9c2f 100644 --- a/core/src/trezor/ui/layouts/mercury/__init__.py +++ b/core/src/trezor/ui/layouts/mercury/__init__.py @@ -980,17 +980,6 @@ if not utils.BITCOIN_ONLY: br_code: ButtonRequestType = ButtonRequestType.SignTx, chunkify: bool = False, ) -> None: - total_layout = RustLayout( - trezorui2.confirm_total( - title=TR.words__title_summary, - items=[ - (f"{TR.words__amount}:", total_amount), - (TR.send__maximum_fee, maximum_fee), - ], - info_button=True, - cancel_arrow=True, - ) - ) info_layout = RustLayout( trezorui2.show_info_with_cancel( title=TR.confirm_total__title_fee, @@ -1010,6 +999,17 @@ if not utils.BITCOIN_ONLY: ) try: + total_layout = RustLayout( + trezorui2.confirm_total( + title=TR.words__title_summary, + items=[ + (f"{TR.words__amount}:", total_amount), + (TR.send__maximum_fee, maximum_fee), + ], + info_button=True, + cancel_arrow=True, + ) + ) total_layout.request_complete_repaint() await raise_if_not_confirmed( with_info(total_layout, info_layout, br_name, br_code)