diff --git a/ports/stm32/boards/Passport/modules/flows/restore_seed_flow.py b/ports/stm32/boards/Passport/modules/flows/restore_seed_flow.py index 9ebfcf1ac..808dbe44b 100644 --- a/ports/stm32/boards/Passport/modules/flows/restore_seed_flow.py +++ b/ports/stm32/boards/Passport/modules/flows/restore_seed_flow.py @@ -71,7 +71,6 @@ async def explain_temporary(self): if not result: if not self.back(): - settings.exit_temporary_mode() self.set_result(None) return @@ -247,3 +246,8 @@ async def valid_seed(self): text = 'Unable to {} seed'.format('apply' if self.temporary else 'save') await ErrorPage(text).show() self.set_result(False) + + def set_result(self, result, forget_state=True): + if not result: + settings.exit_temporary_mode() + super().set_result(result, forget_state)