Browse Source
Merge pull request #6248 from hoganri/network-status
Fixes network status "node" vs "nodes" count
bip39-recovery
ThomasV
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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: |
|
|
|