From e60b35df643ea7c8f4f6906ece15b3b0f79c9d49 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 20 Jan 2016 06:28:35 +0100 Subject: [PATCH] kivy wizard: stop on_dismiss --- gui/kivy/uix/dialogs/create_restore.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/kivy/uix/dialogs/create_restore.py b/gui/kivy/uix/dialogs/create_restore.py index cd902f99..3b2a3451 100644 --- a/gui/kivy/uix/dialogs/create_restore.py +++ b/gui/kivy/uix/dialogs/create_restore.py @@ -270,6 +270,12 @@ class WizardDialog(EventsDialog): else: self.crcontent.add_widget(widget, index=index) + def on_dismiss(self): + app = App.get_running_app() + if app.wallet is None and self._on_release is not None: + print "on dismiss: stopping app" + app.stop() + class CreateRestoreDialog(WizardDialog): ''' Initial Dialog for creating or restoring seed'''