1
0

qml: clean up

This commit is contained in:
Sander van Grieken
2022-07-12 18:58:36 +02:00
parent 63fed38305
commit 894495aa92
6 changed files with 17 additions and 62 deletions

View File

@@ -82,7 +82,6 @@ class QEChannelListModel(QAbstractListModel, QtEventListener):
item['capacity'] = QEAmount(amount_sat=lnc.get_capacity())
item['can_send'] = QEAmount(amount_msat=lnc.available_to_spend(LOCAL))
item['can_receive'] = QEAmount(amount_msat=lnc.available_to_spend(REMOTE))
self._logger.debug(repr(item))
return item
numOpenChannelsChanged = pyqtSignal()
@@ -101,7 +100,6 @@ class QEChannelListModel(QAbstractListModel, QtEventListener):
lnchannels = self.wallet.lnworker.channels
for channel in lnchannels.values():
self._logger.debug(repr(channel))
item = self.channel_to_model(channel)
channels.append(item)
@@ -120,7 +118,6 @@ class QEChannelListModel(QAbstractListModel, QtEventListener):
def do_update(self, modelindex, channel):
modelitem = self.channels[modelindex]
#self._logger.debug(repr(modelitem))
modelitem.update(self.channel_to_model(channel))
mi = self.createIndex(modelindex, 0)