1
0

do not save gui_last_wallet if -w parameter was passed

This commit is contained in:
ThomasV
2015-03-31 17:56:18 +02:00
parent c6027a3578
commit c00b1f649a
2 changed files with 3 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ class ElectrumGui:
last_wallet = self.config.get('gui_last_wallet')
if last_wallet is not None and self.config.get('wallet_path') is None:
if os.path.exists(last_wallet):
self.config.read_only_options['wallet_path'] = last_wallet
self.config.read_only_options['default_wallet_path'] = last_wallet
try:
storage = WalletStorage(self.config)
except BaseException as e:

View File

@@ -301,8 +301,8 @@ class ElectrumWindow(QMainWindow):
# load new wallet in gui
self.load_wallet(wallet)
# save path
self.config.set_key('gui_last_wallet', filename)
if self.config.get('wallet_path') is None:
self.config.set_key('gui_last_wallet', filename)
def backup_wallet(self):