Browse Source

qml: qechanneldetails fix remaining assignment

master
Sander van Grieken 3 years ago
parent
commit
76786ab670
  1. 2
      electrum/gui/qml/qechanneldetails.py

2
electrum/gui/qml/qechanneldetails.py

@ -118,7 +118,7 @@ class QEChannelDetails(QObject, QtEventListener):
@pyqtProperty(QEAmount, notify=channelChanged) @pyqtProperty(QEAmount, notify=channelChanged)
def localCapacity(self): def localCapacity(self):
if not self._channel.is_backup(): if not self._channel.is_backup():
self._local_capacity = QEAmount(amount_msat=self._channel.balance(LOCAL)) self._local_capacity.copyFrom(QEAmount(amount_msat=self._channel.balance(LOCAL)))
return self._local_capacity return self._local_capacity
@pyqtProperty(QEAmount, notify=channelChanged) @pyqtProperty(QEAmount, notify=channelChanged)

Loading…
Cancel
Save