From 577836682e4ae70ce35628038edd8071ac9f8151 Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Tue, 4 Mar 2025 16:04:42 +0100 Subject: [PATCH] chore(eckhart): update address warnings --- core/src/trezor/ui/layouts/eckhart/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/trezor/ui/layouts/eckhart/__init__.py b/core/src/trezor/ui/layouts/eckhart/__init__.py index 4baade25ee..dc4a6fd700 100644 --- a/core/src/trezor/ui/layouts/eckhart/__init__.py +++ b/core/src/trezor/ui/layouts/eckhart/__init__.py @@ -129,6 +129,8 @@ def confirm_path_warning( "path_warning", description, value=path, + title=TR.words__pay_attention, + menu_title=TR.words__receive, verb_cancel=TR.words__cancel_and_exit, br_code=ButtonRequestType.UnknownDerivationPath, ) @@ -138,7 +140,8 @@ def confirm_multisig_warning() -> Awaitable[None]: return show_danger( "warning_multisig", TR.send__receiving_to_multisig, - title=TR.words__important, + title=TR.words__pay_attention, + menu_title=TR.words__receive, verb_cancel=TR.words__cancel_and_exit, ) @@ -146,8 +149,9 @@ def confirm_multisig_warning() -> Awaitable[None]: def confirm_multisig_different_paths_warning() -> Awaitable[None]: return raise_if_not_confirmed( trezorui_api.show_danger( - title=f"{TR.words__important}!", + title=TR.words__pay_attention, description="Using different paths for different XPUBs.", + menu_title=TR.words__receive, ), "warning_multisig_different_paths", br_code=ButtonRequestType.Warning, @@ -336,6 +340,7 @@ def show_danger( content: str, value: str | None = None, title: str | None = None, + menu_title: str | None = None, verb_cancel: str | None = None, br_code: ButtonRequestType = ButtonRequestType.Warning, ) -> Awaitable[None]: @@ -346,6 +351,7 @@ def show_danger( title=title, description=content, value=(value or ""), + menu_title=menu_title, verb_cancel=verb_cancel, ), br_name,