mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 05:18:08 +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::{
|
ui::{
|
||||||
button_request::{ButtonRequest, ButtonRequestCode},
|
button_request::{ButtonRequest, ButtonRequestCode},
|
||||||
component::{
|
component::{
|
||||||
|
button_request::ButtonRequestExt,
|
||||||
swipe_detect::SwipeSettings,
|
swipe_detect::SwipeSettings,
|
||||||
text::paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, Paragraphs, VecExt},
|
text::paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, Paragraphs, VecExt},
|
||||||
ComponentExt, SwipeDirection,
|
ComponentExt, SwipeDirection,
|
||||||
|
@ -112,6 +112,7 @@ async def continue_recovery(
|
|||||||
# in the context menu
|
# in the context menu
|
||||||
|
|
||||||
# NOTE: show_info can be understood as first screen before any shares
|
# NOTE: show_info can be understood as first screen before any shares
|
||||||
|
# NOTE: button request sent from the flow
|
||||||
homepage = RustLayout(
|
homepage = RustLayout(
|
||||||
trezorui2.flow_continue_recovery(
|
trezorui2.flow_continue_recovery(
|
||||||
first_screen=show_info,
|
first_screen=show_info,
|
||||||
@ -120,8 +121,7 @@ async def continue_recovery(
|
|||||||
subtext=subtext,
|
subtext=subtext,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# TODO: the button request might go to rust
|
result = await homepage
|
||||||
result = await interact(homepage, "recovery", ButtonRequestType.RecoveryHomepage)
|
|
||||||
return result is CONFIRMED
|
return result is CONFIRMED
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user