tkivy: save and open to last wallet - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ff7159495c3fd328a8895b3f566bd738ae073a0c DIR parent e57e55aad8da8dba6a8b7a83ef203e5ab770423c HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 6 Jun 2018 19:21:00 +0200 kivy: save and open to last wallet The previous code did not work as before the flow reaches the old save point window.wallet is set to None in on_stop. Diffstat: M gui/kivy/__init__.py | 2 -- M gui/kivy/main_window.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/kivy/__init__.py b/gui/kivy/__init__.py t@@ -60,5 +60,3 @@ class ElectrumGui: plugins = self.plugins, gui_object=self) w.run() - if w.wallet: - self.config.save_last_wallet(w.wallet) DIR diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py t@@ -511,6 +511,8 @@ class ElectrumWindow(App): def on_stop(self): Logger.info('on_stop') + if self.wallet: + self.electrum_config.save_last_wallet(self.wallet) self.stop_wallet() def stop_wallet(self):