1
0

lnworker: get_channel_objects method to be used by GUI

This commit is contained in:
ThomasV
2022-07-20 21:07:13 +02:00
parent 4a27e4e51a
commit b5617ec0fd
4 changed files with 16 additions and 9 deletions

View File

@@ -657,9 +657,8 @@ class LightningChannelsDialog(Factory.Popup):
if not self.app.wallet:
return
lnworker = self.app.wallet.lnworker
channels = list(lnworker.channels.values()) if lnworker else []
backups = list(lnworker.channel_backups.values()) if lnworker else []
for i in channels + backups:
channels = lnworker.get_channel_objects().values() if lnworker else []
for i in channels:
item = Factory.LightningChannelItem()
item.screen = self
item.active = not i.is_closed()