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:
@@ -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, {}, {})
|
||||
|
||||
Reference in New Issue
Block a user