electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ff7159495c3fd328a8895b3f566bd738ae073a0c
parent e57e55aad8da8dba6a8b7a83ef203e5ab770423c
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:
Mgui/kivy/__init__.py | 2--
Mgui/kivy/main_window.py | 2++
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/kivy/__init__.py b/gui/kivy/__init__.py @@ -60,5 +60,3 @@ class ElectrumGui: plugins = self.plugins, gui_object=self) w.run() - if w.wallet: - self.config.save_last_wallet(w.wallet) diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py @@ -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):