Skip to content

Commit

Permalink
SFT-3902: fixed runaway temporary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Aug 1, 2024
1 parent b3d5329 commit f1c9695
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

0 comments on commit f1c9695

Please sign in to comment.