1
0

qml: add total balance, fix initialization of create recoverable channels setting

This commit is contained in:
Sander van Grieken
2022-10-17 17:24:46 +02:00
parent 80f2bf7c09
commit 3a8cfcd5b8
3 changed files with 73 additions and 17 deletions

View File

@@ -366,6 +366,12 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
self._lightningbalance = QEAmount(amount_sat=int(self.wallet.lnworker.get_balance()))
return self._lightningbalance
@pyqtProperty(QEAmount, notify=balanceChanged)
def totalBalance(self):
total = self.confirmedBalance.satsInt + self.lightningBalance.satsInt
self._totalBalance = QEAmount(amount_sat=total)
return self._totalBalance
@pyqtProperty(QEAmount, notify=balanceChanged)
def lightningCanSend(self):
if not self.isLightning: