commit 610b37890f13191e96b347570334779b2e062462
parent ff7159495c3fd328a8895b3f566bd738ae073a0c
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 6 Jun 2018 19:38:59 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gui/kivy/main_window.py b/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):