qml: add total balance, fix initialization of create recoverable channels setting
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user