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:
@@ -193,8 +193,10 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
||||
wd = page.wizard_data.copy()
|
||||
if self.is_last(wd):
|
||||
self.submit(wd)
|
||||
self.finished(wd)
|
||||
self.accept()
|
||||
if self.is_finalized(wd):
|
||||
self.accept()
|
||||
else:
|
||||
self.prev() # rollback the submit above
|
||||
else:
|
||||
next = self.submit(wd)
|
||||
self.load_next_component(next.view, next.wizard_data, next.params)
|
||||
@@ -219,6 +221,10 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
||||
wdata = wizard_data.copy()
|
||||
return self.is_last_view(self._current.view, wdata)
|
||||
|
||||
def is_finalized(self, wizard_data: dict) -> bool:
|
||||
''' Final check before closing the wizard. '''
|
||||
return True
|
||||
|
||||
|
||||
class WizardComponent(QWidget):
|
||||
updated = pyqtSignal(object)
|
||||
|
||||
Reference in New Issue
Block a user