1
0
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:
Pavol Rusnak 2018-10-22 14:10:35 +02:00
parent d1256e3831
commit 14efc70f82
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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"));
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(
msg->has_display_random && msg->display_random,
msg->has_strength ? msg->strength : 128,