qml: always pass wallet password to init_lightning.
emit also dataChanged so UI updates node pubkey
This commit is contained in:
@@ -218,7 +218,6 @@ ApplicationWindow
|
|||||||
|
|
||||||
StackView {
|
StackView {
|
||||||
id: mainStackView
|
id: mainStackView
|
||||||
// anchors.fill: parent
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: inputPanel.y - header.height
|
height: inputPanel.y - header.height
|
||||||
initialItem: Qt.resolvedUrl('WalletMainView.qml')
|
initialItem: Qt.resolvedUrl('WalletMainView.qml')
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ class QEWalletListModel(QAbstractListModel):
|
|||||||
if wallet_path == path:
|
if wallet_path == path:
|
||||||
remove = i
|
remove = i
|
||||||
else:
|
else:
|
||||||
self._logger.debug('HM, %s is not %s', wallet_path, path)
|
|
||||||
wallets.append((wallet_name, wallet_path))
|
wallets.append((wallet_name, wallet_path))
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|||||||
@@ -473,8 +473,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def enableLightning(self):
|
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.isLightningChanged.emit()
|
||||||
|
self.dataChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot(str, int, int, bool)
|
@pyqtSlot(str, int, int, bool)
|
||||||
def send_onchain(self, address, amount, fee=None, rbf=False):
|
def send_onchain(self, address, amount, fee=None, rbf=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user