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:
parent
3d6bfddc5f
commit
ba2b2f24da
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user