mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 15:18:08 +00:00
WIP - seed backup improvements
This commit is contained in:
parent
a36132adb0
commit
39c70e6fab
@ -537,7 +537,9 @@ extern "C" fn select_word(n_args: usize, args: *const Obj, kwargs: *mut Map) ->
|
|||||||
let words: Vec<StrBuffer, 3> = iter_into_vec(words_iterable)?;
|
let words: Vec<StrBuffer, 3> = iter_into_vec(words_iterable)?;
|
||||||
|
|
||||||
// TODO: should return int, to be consistent with TT's select_word
|
// TODO: should return int, to be consistent with TT's select_word
|
||||||
let obj = LayoutObj::new(Frame::new(title, SimpleChoice::new(words, true, true)))?;
|
let obj = LayoutObj::new(
|
||||||
|
Frame::new(title, SimpleChoice::new(words, true, true)).with_title_center(true),
|
||||||
|
)?;
|
||||||
Ok(obj.into())
|
Ok(obj.into())
|
||||||
};
|
};
|
||||||
unsafe { util::try_with_args_and_kwargs(n_args, args, kwargs, block) }
|
unsafe { util::try_with_args_and_kwargs(n_args, args, kwargs, block) }
|
||||||
|
@ -34,12 +34,13 @@ async def show_share_words(
|
|||||||
)
|
)
|
||||||
|
|
||||||
ready_to_check = await get_bool(
|
ready_to_check = await get_bool(
|
||||||
ctx=ctx,
|
ctx,
|
||||||
title="CHECK PHRASE",
|
"backup_words",
|
||||||
data="Select correct words in correct positions.",
|
"CHECK BACKUP",
|
||||||
|
None,
|
||||||
|
"Select correct words in correct positions.",
|
||||||
verb_cancel="SEE AGAIN",
|
verb_cancel="SEE AGAIN",
|
||||||
verb="BEGIN",
|
verb="BEGIN",
|
||||||
br_type="backup_words",
|
|
||||||
br_code=ButtonRequestType.ResetDevice,
|
br_code=ButtonRequestType.ResetDevice,
|
||||||
)
|
)
|
||||||
if not ready_to_check:
|
if not ready_to_check:
|
||||||
|
Loading…
Reference in New Issue
Block a user