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:
Miguel Jacq 2018-01-04 08:43:43 +11:00
parent 249f9fa18b
commit cdb7a4df71
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -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)