follow up e20dfcd3eb
This commit is contained in:
@@ -177,7 +177,7 @@ class ElectrumGui:
|
|||||||
last_wallet = self.config.get('gui_last_wallet')
|
last_wallet = self.config.get('gui_last_wallet')
|
||||||
if last_wallet is not None and self.config.get('wallet_path') is None:
|
if last_wallet is not None and self.config.get('wallet_path') is None:
|
||||||
if os.path.exists(last_wallet):
|
if os.path.exists(last_wallet):
|
||||||
self.config.read_only_options['default_wallet_path'] = last_wallet
|
self.config.cmdline_options['default_wallet_path'] = last_wallet
|
||||||
try:
|
try:
|
||||||
storage = WalletStorage(self.config.get_wallet_path())
|
storage = WalletStorage(self.config.get_wallet_path())
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import threading
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from util import user_dir, print_error, print_msg
|
from util import user_dir, print_error, print_msg, print_stderr
|
||||||
|
|
||||||
SYSTEM_CONFIG_PATH = "/etc/electrum.conf"
|
SYSTEM_CONFIG_PATH = "/etc/electrum.conf"
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ class SimpleConfig(object):
|
|||||||
|
|
||||||
def set_key(self, key, value, save = True):
|
def set_key(self, key, value, save = True):
|
||||||
if not self.is_modifiable(key):
|
if not self.is_modifiable(key):
|
||||||
print_error("Warning: not changing config key '%s' set on the command line" % key)
|
print_stderr("Warning: not changing config key '%s' set on the command line" % key)
|
||||||
return
|
return
|
||||||
|
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user