Browse Source

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.
3.2.x
SomberNight 7 years ago
parent
commit
ff7159495c
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      gui/kivy/__init__.py
  2. 2
      gui/kivy/main_window.py

2
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)

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

Loading…
Cancel
Save