1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

firmware: mark backup as done before giving away the mnemonic, not after

This commit is contained in:
Pavol Rusnak 2017-07-05 12:17:46 +02:00
parent 3d6bfddc5f
commit ba2b2f24da
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -116,6 +116,10 @@ void reset_backup(bool separated)
return;
}
storage.has_needs_backup = true;
storage.needs_backup = false;
storage_commit();
int pass, word_pos, i = 0, j;
for (pass = 0; pass < 2; pass++) {
@ -173,10 +177,6 @@ void reset_backup(bool separated)
}
}
storage.has_needs_backup = true;
storage.needs_backup = false;
storage_commit();
if (separated) {
fsm_sendSuccess(_("Seed successfully backed up"));
} else {