mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-22 05:10:56 +00:00
reset: add confirm dialog
This commit is contained in:
parent
d1256e3831
commit
14efc70f82
@ -213,6 +213,13 @@ void fsm_msgResetDevice(const ResetDevice *msg)
|
|||||||
|
|
||||||
CHECK_PARAM(!msg->has_strength || msg->strength == 128 || msg->strength == 192 || msg->strength == 256, _("Invalid seed strength"));
|
CHECK_PARAM(!msg->has_strength || msg->strength == 128 || msg->strength == 192 || msg->strength == 256, _("Invalid seed strength"));
|
||||||
|
|
||||||
|
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL, _("Do you really want to"), _("create a new wallet?"), NULL, NULL, NULL, NULL);
|
||||||
|
if (!protectButton(ButtonRequestType_ButtonRequest_ProtectCall, false)) {
|
||||||
|
fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL);
|
||||||
|
layoutHome();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
reset_init(
|
reset_init(
|
||||||
msg->has_display_random && msg->display_random,
|
msg->has_display_random && msg->display_random,
|
||||||
msg->has_strength ? msg->strength : 128,
|
msg->has_strength ? msg->strength : 128,
|
||||||
|
Loading…
Reference in New Issue
Block a user