mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
#528 disable the 'Check for Updates' button in the SettingsDialog if Tor is not connected
This commit is contained in:
parent
5c390f1bd9
commit
249f9fa18b
@ -96,6 +96,9 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
# Check for updates button
|
# Check for updates button
|
||||||
self.check_for_updates_button = QtWidgets.QPushButton(strings._('gui_settings_autoupdate_check_button', True))
|
self.check_for_updates_button = QtWidgets.QPushButton(strings._('gui_settings_autoupdate_check_button', True))
|
||||||
self.check_for_updates_button.clicked.connect(self.check_for_updates)
|
self.check_for_updates_button.clicked.connect(self.check_for_updates)
|
||||||
|
# We can't check for updates if not connected to Tor
|
||||||
|
if not self.onion.connected_to_tor:
|
||||||
|
self.check_for_updates_button.setEnabled(False)
|
||||||
|
|
||||||
# Autoupdate options layout
|
# Autoupdate options layout
|
||||||
autoupdate_group_layout = QtWidgets.QVBoxLayout()
|
autoupdate_group_layout = QtWidgets.QVBoxLayout()
|
||||||
|
Loading…
Reference in New Issue
Block a user