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 6626e7d67e
commit e9120fd87e
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

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