electrum

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

commit 5d8d8f743a6c8c4539235c2b5504720bb1b0c01b
parent 091f6ced584a5cd34a8c78a69b982a75e0c9b2c4
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu, 13 Feb 2020 03:12:32 +0100

kivy: more reliable saving of "last wallet"

The intended behaviour is that when the user launches the app,
the wallet we try to open is the wallet most recently opened by the user.
The old code in 'on_stop' in practice only got called if the user exited via
repeatedly pressing the system 'back' button.

related #5952

Diffstat:
Melectrum/gui/kivy/main_window.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py @@ -658,8 +658,6 @@ 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): @@ -833,6 +831,7 @@ class ElectrumWindow(App): send_exception_to_crash_reporter(e) return self.use_change = self.wallet.use_change + self.electrum_config.save_last_wallet(wallet) def update_status(self, *dt): if not self.wallet: