1
0

qml: only show channel peer node name if known, add node pubkey to ChannelCloseDialog

This commit is contained in:
Sander van Grieken
2022-11-16 13:40:22 +01:00
parent 5380b21568
commit 0687785994
6 changed files with 42 additions and 11 deletions

View File

@@ -78,11 +78,11 @@ class QEChannelDetails(QObject, QtEventListener):
def name(self):
if not self._channel:
return
return self._wallet.wallet.lnworker.get_node_alias(self._channel.node_id) or self._channel.node_id.hex()
return self._wallet.wallet.lnworker.get_node_alias(self._channel.node_id) or ''
@pyqtProperty(str, notify=channelChanged)
def pubkey(self):
return self._channel.node_id.hex() #if self._channel else ''
return self._channel.node_id.hex()
@pyqtProperty(str, notify=channelChanged)
def short_cid(self):