From 98c747ea6eaf1413515e9abda5a713ddd8479692 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 4 Oct 2022 12:34:24 +0200 Subject: [PATCH] qml: use -w command line parameter to open wallet, if specified --- electrum/gui/qml/qedaemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qedaemon.py b/electrum/gui/qml/qedaemon.py index 385a4a4df..7e5e2562c 100644 --- a/electrum/gui/qml/qedaemon.py +++ b/electrum/gui/qml/qedaemon.py @@ -143,7 +143,9 @@ class QEDaemon(AuthMixin, QObject): @pyqtSlot(str, str) def load_wallet(self, path=None, password=None): if path == None: - self._path = self.daemon.config.get('gui_last_wallet') + self._path = self.daemon.config.get('wallet_path') # command line -w option + if self._path is None: + self._path = self.daemon.config.get('gui_last_wallet') else: self._path = path if self._path is None: