Merge branch 'mig5-438_settings_icon_inactive'

This commit is contained in:
Micah Lee 2017-07-09 14:16:29 -07:00
commit 5435a4b046
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 4 additions and 0 deletions

View File

@ -449,6 +449,10 @@ 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)
if active:
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')) )
else:
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings.png')) )
def closeEvent(self, e): def closeEvent(self, e):
common.log('OnionShareGui', 'closeEvent') common.log('OnionShareGui', 'closeEvent')

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B