mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-15 01:07:21 -05:00
Don't re-enable the Check for Updates button after testing Tor connection, if the main Tor connection is still not active
This commit is contained in:
parent
249f9fa18b
commit
cdb7a4df71
@ -596,8 +596,11 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
|
|
||||||
def _enable_buttons(self):
|
def _enable_buttons(self):
|
||||||
common.log('SettingsDialog', '_enable_buttons')
|
common.log('SettingsDialog', '_enable_buttons')
|
||||||
|
# We can't check for updates if we're still not connected to Tor
|
||||||
self.check_for_updates_button.setEnabled(True)
|
if not self.onion.connected_to_tor:
|
||||||
|
self.check_for_updates_button.setEnabled(False)
|
||||||
|
else:
|
||||||
|
self.check_for_updates_button.setEnabled(True)
|
||||||
self.connection_type_test_button.setEnabled(True)
|
self.connection_type_test_button.setEnabled(True)
|
||||||
self.save_button.setEnabled(True)
|
self.save_button.setEnabled(True)
|
||||||
self.cancel_button.setEnabled(True)
|
self.cancel_button.setEnabled(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user