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.
This commit is contained in:
SomberNight 2018-06-06 19:21:00 +02:00
parent e57e55aad8
commit ff7159495c
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 2 additions and 2 deletions

View file

@ -60,5 +60,3 @@ class ElectrumGui:
plugins = self.plugins,
gui_object=self)
w.run()
if w.wallet:
self.config.save_last_wallet(w.wallet)

View file

@ -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):