From 71b2c986f8b95ad4dba9ad3559f40a0e4ab7e506 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Sun, 28 Jul 2024 18:52:29 +0200 Subject: [PATCH] feat(core/ui): send BR from rust during recovery [no changelog] --- .../embed/rust/src/ui/model_mercury/flow/continue_recovery.rs | 1 + core/src/trezor/ui/layouts/mercury/recovery.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/model_mercury/flow/continue_recovery.rs b/core/embed/rust/src/ui/model_mercury/flow/continue_recovery.rs index 07be4b2682..2988ee15a0 100644 --- a/core/embed/rust/src/ui/model_mercury/flow/continue_recovery.rs +++ b/core/embed/rust/src/ui/model_mercury/flow/continue_recovery.rs @@ -6,6 +6,7 @@ use crate::{ ui::{ button_request::{ButtonRequest, ButtonRequestCode}, component::{ + button_request::ButtonRequestExt, swipe_detect::SwipeSettings, text::paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, Paragraphs, VecExt}, ComponentExt, SwipeDirection, diff --git a/core/src/trezor/ui/layouts/mercury/recovery.py b/core/src/trezor/ui/layouts/mercury/recovery.py index 021cbfceac..5ac7403fd4 100644 --- a/core/src/trezor/ui/layouts/mercury/recovery.py +++ b/core/src/trezor/ui/layouts/mercury/recovery.py @@ -112,6 +112,7 @@ async def continue_recovery( # in the context menu # NOTE: show_info can be understood as first screen before any shares + # NOTE: button request sent from the flow homepage = RustLayout( trezorui2.flow_continue_recovery( first_screen=show_info, @@ -120,8 +121,7 @@ async def continue_recovery( subtext=subtext, ) ) - # TODO: the button request might go to rust - result = await interact(homepage, "recovery", ButtonRequestType.RecoveryHomepage) + result = await homepage return result is CONFIRMED