1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

feat(core/ui): send BR from rust during recovery

[no changelog]
This commit is contained in:
obrusvit 2024-07-28 18:52:29 +02:00 committed by Vít Obrusník
parent 510230628b
commit 71b2c986f8
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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