1
0

ln: shortcut some OpenChannel fields to traversing too much

This commit is contained in:
Janus
2018-06-27 18:49:51 +02:00
committed by ThomasV
parent 77e9abc655
commit 42a56df996
4 changed files with 81 additions and 62 deletions

View File

@@ -50,8 +50,8 @@ class ChannelsList(MyTreeWidget):
def do_update_rows(self):
self.clear()
for chan in self.parent.wallet.lnworker.channels.values():
item = SortableTreeWidgetItem(self.format_fields(chan.state))
item.setData(0, QtCore.Qt.UserRole, chan.state.channel_id)
item = SortableTreeWidgetItem(self.format_fields(chan))
item.setData(0, QtCore.Qt.UserRole, chan.channel_id)
self.insertTopLevelItem(0, item)
def get_toolbar(self):