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:
parent
510230628b
commit
71b2c986f8
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user