Skip to content

Commit 98c747e

Browse files
committed
qml: use -w command line parameter to open wallet, if specified
1 parent 8867387 commit 98c747e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

electrum/gui/qml/qedaemon.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def passwordValidityCheck(self):
143143
@pyqtSlot(str, str)
144144
def load_wallet(self, path=None, password=None):
145145
if path == None:
146-
self._path = self.daemon.config.get('gui_last_wallet')
146+
self._path = self.daemon.config.get('wallet_path') # command line -w option
147+
if self._path is None:
148+
self._path = self.daemon.config.get('gui_last_wallet')
147149
else:
148150
self._path = path
149151
if self._path is None:

0 commit comments

Comments
 (0)