Browse Source

qt network dialog: "use Tor proxy" cb would get auto-checked incorrectly

regtest_lnd
SomberNight 6 years ago
parent
commit
15dda65c52
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 7
      electrum/gui/qt/network_dialog.py

7
electrum/gui/qt/network_dialog.py

@ -478,9 +478,10 @@ class NetworkChoiceLayout(object):
return
self.tor_proxy = found_proxy
self.tor_cb.setText("Use Tor proxy at port " + str(found_proxy[1]))
if self.proxy_mode.currentIndex() == self.proxy_mode.findText('SOCKS5') \
and self.proxy_host.text() == "127.0.0.1" \
and self.proxy_port.text() == str(found_proxy[1]):
if (self.proxy_cb.isChecked()
and self.proxy_mode.currentIndex() == self.proxy_mode.findText('SOCKS5')
and self.proxy_host.text() == "127.0.0.1"
and self.proxy_port.text() == str(found_proxy[1])):
self.tor_cb.setChecked(True)
self.tor_cb.show()

Loading…
Cancel
Save