From 21d1a6239fbdf97d6d84d71da63234dfea032b80 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 14 Apr 2023 12:21:38 +0200 Subject: [PATCH] qml: always pass wallet password to init_lightning. emit also dataChanged so UI updates node pubkey --- electrum/gui/qml/components/main.qml | 1 - electrum/gui/qml/qedaemon.py | 1 - electrum/gui/qml/qewallet.py | 3 ++- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 6e03b1440..bb20cd909 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -218,7 +218,6 @@ ApplicationWindow StackView { id: mainStackView - // anchors.fill: parent width: parent.width height: inputPanel.y - header.height initialItem: Qt.resolvedUrl('WalletMainView.qml') diff --git a/electrum/gui/qml/qedaemon.py b/electrum/gui/qml/qedaemon.py index 99ace56cb..0dbfff7c8 100644 --- a/electrum/gui/qml/qedaemon.py +++ b/electrum/gui/qml/qedaemon.py @@ -83,7 +83,6 @@ class QEWalletListModel(QAbstractListModel): if wallet_path == path: remove = i else: - self._logger.debug('HM, %s is not %s', wallet_path, path) wallets.append((wallet_name, wallet_path)) i += 1 diff --git a/electrum/gui/qml/qewallet.py b/electrum/gui/qml/qewallet.py index db0d7874c..0b6366620 100644 --- a/electrum/gui/qml/qewallet.py +++ b/electrum/gui/qml/qewallet.py @@ -473,8 +473,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener): @pyqtSlot() def enableLightning(self): - self.wallet.init_lightning(password=None) # TODO pass password if needed + self.wallet.init_lightning(password=self.password) self.isLightningChanged.emit() + self.dataChanged.emit() @pyqtSlot(str, int, int, bool) def send_onchain(self, address, amount, fee=None, rbf=False):