Browse Source

qt network dialog: show protocol (if ":t") for servers in NodesList

patch-4
SomberNight 4 years ago
parent
commit
1d9311aeef
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/network_dialog.py

2
electrum/gui/qt/network_dialog.py

@ -148,7 +148,7 @@ class NodesListWidget(QTreeWidget):
x = connected_servers_item
for i in interfaces:
star = ' *' if i == network.interface else ''
item = QTreeWidgetItem([f"{i.server.net_addr_str()}" + star, '%d'%i.tip])
item = QTreeWidgetItem([f"{i.server.to_friendly_name()}" + star, '%d'%i.tip])
item.setData(0, self.ITEMTYPE_ROLE, self.ItemType.CONNECTED_SERVER)
item.setData(0, self.SERVER_ADDR_ROLE, i.server)
item.setToolTip(0, str(i.server))

Loading…
Cancel
Save