1
0

qml: qechanneldetails fix remaining assignment

This commit is contained in:
Sander van Grieken
2023-04-17 13:56:40 +02:00
parent 73f89d516a
commit 76786ab670

View File

@@ -118,7 +118,7 @@ class QEChannelDetails(QObject, QtEventListener):
@pyqtProperty(QEAmount, notify=channelChanged)
def localCapacity(self):
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
@pyqtProperty(QEAmount, notify=channelChanged)