Browse Source

kivy: after deleting wallet, try to open saved wallet

saved wallet = "wallet that was last open during a graceful shutdown"

previously we would just try to open "default_wallet". now, if the deleted wallet is not the saved wallet, we open the saved wallet; else try to open "default_wallet". if "default_wallet" does not exist, as before, the wizard launches.
3.2.x
SomberNight 7 years ago
parent
commit
610b37890f
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      gui/kivy/main_window.py

4
gui/kivy/main_window.py

@ -921,9 +921,7 @@ class ElectrumWindow(App):
self.stop_wallet()
os.unlink(wallet_path)
self.show_error(_("Wallet removed: {}").format(basename))
d = os.listdir(dirname)
name = 'default_wallet'
new_path = os.path.join(dirname, name)
new_path = self.electrum_config.get_wallet_path()
self.load_wallet_by_name(new_path)
def show_seed(self, label):

Loading…
Cancel
Save