kivy wizard: fix #5333
This commit is contained in:
@@ -629,8 +629,7 @@ class WizardKnownOTPDialog(WizardOTPDialogBase):
|
|||||||
|
|
||||||
def abort_wallet_creation(self):
|
def abort_wallet_creation(self):
|
||||||
self._on_release = True
|
self._on_release = True
|
||||||
os.unlink(self.path)
|
self.wizard.terminate(aborted=True)
|
||||||
self.wizard.terminate()
|
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
|
|
||||||
|
|
||||||
@@ -976,8 +975,8 @@ class InstallWizard(BaseWizard, Widget):
|
|||||||
t = threading.Thread(target = target)
|
t = threading.Thread(target = target)
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
def terminate(self, *, storage=None):
|
def terminate(self, *, storage=None, aborted=False):
|
||||||
if storage is None:
|
if storage is None and not aborted:
|
||||||
storage = self.create_storage(self.path)
|
storage = self.create_storage(self.path)
|
||||||
self.dispatch('on_wizard_complete', storage)
|
self.dispatch('on_wizard_complete', storage)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user