fix the settings icon so it only switches to inactive icon when server is active

This commit is contained in:
Miguel Jacq 2017-06-03 19:01:40 +10:00
parent b7da267d4b
commit 6b0d66b90d

View file

@ -443,7 +443,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
Disable the Settings button while an OnionShare server is active. Disable the Settings button while an OnionShare server is active.
""" """
self.settings_button.setEnabled(not active) self.settings_button.setEnabled(not active)
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')) ) if active:
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')) )
def closeEvent(self, e): def closeEvent(self, e):
common.log('OnionShareGui', 'closeEvent') common.log('OnionShareGui', 'closeEvent')