Instead of disabling the settings button when share is active, hide it, and show it again when the share stops

This commit is contained in:
Micah Lee 2018-02-10 10:59:01 -08:00
parent 06a215f95e
commit 129f5be7a6
3 changed files with 2 additions and 5 deletions

View file

@ -569,11 +569,10 @@ class OnionShareGui(QtWidgets.QMainWindow):
"""
Disable the Settings button while an OnionShare server is active.
"""
self.settings_button.setEnabled(not active)
if active:
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')) )
self.settings_button.hide()
else:
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings.png')) )
self.settings_button.show()
# Disable settings menu action when server is active
self.settingsAction.setEnabled(not active)