1
0

qt wizard: tweak GoBack behaviour to recalc inputs to previous dialog

follow-up f13f46c555

When on dialog n user presses "Back",
- previously, we went back to when dialog n-1 appeared
- now, go back to just after dialog n-2 finishes
This way, any calculations between when dialog n-2 finishes and
dialog n-1 appears will rerun, potentially populating dialog n-1 differently.

Namely if the user presses back on the confirm_seed_dialog, we want to
go back to the show_seed_dialog but with a freshly generated seed.
This commit is contained in:
SomberNight
2020-04-11 15:50:12 +02:00
parent e2544b893a
commit 08118ca167
2 changed files with 21 additions and 4 deletions

View File

@@ -60,6 +60,9 @@ class ScriptTypeNotSupported(Exception): pass
class GoBack(Exception): pass
class ReRunDialog(Exception): pass
class ChooseHwDeviceAgain(Exception): pass