Browse Source

qt network dialog: let user edit server host/port in peace

incoming network updates could keep changing the text fields while
user is editing them
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 6 years ago
parent
commit
c9006032d9
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/gui/qt/network_dialog.py

5
electrum/gui/qt/network_dialog.py

@ -359,8 +359,9 @@ class NetworkChoiceLayout(object):
net_params = self.network.get_parameters()
host, port, protocol = net_params.host, net_params.port, net_params.protocol
proxy_config, auto_connect = net_params.proxy, net_params.auto_connect
self.server_host.setText(host)
self.server_port.setText(str(port))
if not self.server_host.hasFocus() and not self.server_port.hasFocus():
self.server_host.setText(host)
self.server_port.setText(str(port))
self.autoconnect_cb.setChecked(auto_connect)
interface = self.network.interface

Loading…
Cancel
Save