diff --git a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs index aa2b614e5c..6f873431e8 100644 --- a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs +++ b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs @@ -832,7 +832,7 @@ impl FirmwareUI for UIEckhart { button: TString<'static>, description: TString<'static>, allow_cancel: bool, - _time_ms: u32, + time_ms: u32, ) -> Result, Error> { let paragraphs = Paragraph::new(&theme::TEXT_REGULAR, description) .into_paragraphs() @@ -845,6 +845,8 @@ impl FirmwareUI for UIEckhart { Button::with_icon(theme::ICON_CROSS), Button::with_text(button), ) + } else if time_ms > 0 { + ActionBar::new_timeout(Button::with_text(button), time_ms) } else { ActionBar::new_single(Button::with_text(button)) }; diff --git a/core/src/trezor/ui/layouts/eckhart/__init__.py b/core/src/trezor/ui/layouts/eckhart/__init__.py index 251614bb03..c3c72045e2 100644 --- a/core/src/trezor/ui/layouts/eckhart/__init__.py +++ b/core/src/trezor/ui/layouts/eckhart/__init__.py @@ -364,6 +364,7 @@ def show_success( content: str, subheader: str | None = None, button: str | None = None, + time_ms: int = 0, ) -> Awaitable[None]: button = button or TR.buttons__continue # def_arg return raise_if_not_confirmed( @@ -372,6 +373,7 @@ def show_success( button=button, description=content, allow_cancel=False, + time_ms=time_ms, ), br_name, ButtonRequestType.Success,