From dd7b356fcc70b774e63a407165a089178a5e506f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 11 May 2019 19:36:57 +0200 Subject: [PATCH] kivy wizard: fix #5333 --- electrum/gui/kivy/uix/dialogs/installwizard.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py index 3a577b0e1..5f7ae0c7b 100644 --- a/electrum/gui/kivy/uix/dialogs/installwizard.py +++ b/electrum/gui/kivy/uix/dialogs/installwizard.py @@ -629,8 +629,7 @@ class WizardKnownOTPDialog(WizardOTPDialogBase): def abort_wallet_creation(self): self._on_release = True - os.unlink(self.path) - self.wizard.terminate() + self.wizard.terminate(aborted=True) self.dismiss() @@ -976,8 +975,8 @@ class InstallWizard(BaseWizard, Widget): t = threading.Thread(target = target) t.start() - def terminate(self, *, storage=None): - if storage is None: + def terminate(self, *, storage=None, aborted=False): + if storage is None and not aborted: storage = self.create_storage(self.path) self.dispatch('on_wizard_complete', storage)