From a697d482bf452353fe11c9ad16de92a2adaf9850 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 2 Mar 2018 16:47:54 +0100 Subject: [PATCH] src/apps/management: delay flag setting by one step in backup --- src/apps/management/backup_device.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/management/backup_device.py b/src/apps/management/backup_device.py index 0280c67b41..3641d0a5d6 100644 --- a/src/apps/management/backup_device.py +++ b/src/apps/management/backup_device.py @@ -14,10 +14,11 @@ async def backup_device(ctx, msg): mnemonic = storage.get_mnemonic() - storage.set_backed_up() - # warn user about mnemonic safety await show_warning(ctx) + + storage.set_backed_up() + while True: # show mnemonic and require confirmation of a random word await show_mnemonic(ctx, mnemonic)