tqt network dialog: show protocol (if ":t") for servers in NodesList - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1d9311aeefb9f9b4d76d72b792d784fb9f024bfd DIR parent d13995309a35e246a2c5ccb8d16ecbca40812a1b HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 27 Jan 2021 20:43:00 +0100 qt network dialog: show protocol (if ":t") for servers in NodesList Diffstat: M electrum/gui/qt/network_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py t@@ -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))