Browse Source

network dialog: minor fixes

2.9.x
ThomasV 7 years ago
parent
commit
ab10848187
  1. 6
      gui/qt/network_dialog.py

6
gui/qt/network_dialog.py

@ -304,8 +304,8 @@ class NetworkChoiceLayout(object):
if len(self.network.blockchains)>1: if len(self.network.blockchains)>1:
checkpoint = self.network.get_checkpoint() checkpoint = self.network.get_checkpoint()
name = self.network.get_blockchain_name(self.network.blockchain()) name = self.network.get_blockchain_name(self.network.blockchain())
msg = _('Chain split detected at block %d')%checkpoint msg = _('Chain split detected at block %d')%checkpoint + '\n'
msg += '\n' + _('Your server is on branch') + ' ' + name msg += (_('You are following branch') if auto_connect else _('Your server is on branch'))+ ' ' + name
else: else:
msg = '' msg = ''
self.split_label.setText(msg) self.split_label.setText(msg)
@ -343,6 +343,7 @@ class NetworkChoiceLayout(object):
host, port, protocol, proxy, auto_connect = self.network.get_parameters() host, port, protocol, proxy, auto_connect = self.network.get_parameters()
auto_connect = True auto_connect = True
self.network.set_parameters(host, port, protocol, proxy, auto_connect) self.network.set_parameters(host, port, protocol, proxy, auto_connect)
self.update()
def follow_server(self, server): def follow_server(self, server):
self.network.switch_to_interface(server) self.network.switch_to_interface(server)
@ -350,6 +351,7 @@ class NetworkChoiceLayout(object):
host, port, protocol = server.split(':') host, port, protocol = server.split(':')
auto_connect = False auto_connect = False
self.network.set_parameters(host, port, protocol, proxy, auto_connect) self.network.set_parameters(host, port, protocol, proxy, auto_connect)
self.update()
def server_changed(self, x): def server_changed(self, x):
if x: if x:

Loading…
Cancel
Save