1
0

wizard: remove finished call, it's unused

qt: call is_finalized before closing the wizard dialog and add a check if wallet can be
    decrypted with the supplied secret (user pw, hw device)
This commit is contained in:
Sander van Grieken
2023-09-07 14:19:41 +02:00
parent dd64b5c628
commit 7fd3b6c91d
3 changed files with 32 additions and 12 deletions

View File

@@ -79,10 +79,7 @@ class AbstractWizard:
# make a clone for next view
wizard_data = copy.deepcopy(wizard_data)
is_finished = False
if 'next' not in nav:
# finished
is_finished = True
new_view = WizardViewState(None, wizard_data, {})
else:
view_next = nav['next']
@@ -118,9 +115,6 @@ class AbstractWizard:
self.log_stack()
if is_finished:
self.finished(wizard_data)
return new_view
def resolve_prev(self):
@@ -154,9 +148,6 @@ class AbstractWizard:
else:
raise Exception(f'last handler for view {view} is not callable nor a bool literal')
def finished(self, wizard_data: dict):
self._logger.debug('finished.')
def reset(self):
self._stack = []
self._current = WizardViewState(None, {}, {})