commit f3c4b8698d83239de1985e2b480722b25e4fd171
parent 85841ba20de7cb6459066538474d3f13e010031e
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 22 Jun 2020 10:39:56 +0200
Merge pull request #6248 from hoganri/network-status
Fixes network status "node" vs "nodes" count
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py
@@ -333,7 +333,7 @@ class NetworkChoiceLayout(object):
height_str = "%d "%(self.network.get_local_height()) + _('blocks')
self.height_label.setText(height_str)
n = len(self.network.get_interfaces())
- status = _("Connected to {0} nodes.").format(n) if n else _("Not connected")
+ status = _("Connected to {0} nodes.").format(n) if n > 1 else _("Connected to {0} node.").format(n) if n == 1 else _("Not connected")
self.status_label.setText(status)
chains = self.network.get_blockchains()
if len(chains) > 1: