1
0

qt channels: expose long channel id (in ctx menu and details dlg)

Also add separators to context menu to more visible separate
close/delete actions from rest.
This commit is contained in:
SomberNight
2020-03-26 01:20:41 +01:00
parent 1448bfe937
commit 7488cc91cd
4 changed files with 13 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ class ChannelDetailsDialog(QtWidgets.QDialog):
form_layout = QtWidgets.QFormLayout(None)
# add form content
form_layout.addRow(_('Channel ID:'), SelectableLabel(chan.get_id_for_log()))
form_layout.addRow(_('Channel ID:'), SelectableLabel(f"{chan.channel_id.hex()} (Short: {chan.short_channel_id})"))
form_layout.addRow(_('State:'), SelectableLabel(chan.get_state_for_GUI()))
self.initiator = 'Local' if chan.constraints.is_initiator else 'Remote'
form_layout.addRow(_('Initiator:'), SelectableLabel(self.initiator))