mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-14 08:49:47 -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):
|
||||
common.log('SettingsDialog', '_enable_buttons')
|
||||
|
||||
self.check_for_updates_button.setEnabled(True)
|
||||
# We can't check for updates if we're still not connected to Tor
|
||||
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.save_button.setEnabled(True)
|
||||
self.cancel_button.setEnabled(True)
|
||||
|
Loading…
Reference in New Issue
Block a user