mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-16 01:37:25 -05:00
Merge branch 'mig5-438_settings_icon_inactive'
This commit is contained in:
commit
5435a4b046
@ -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')
|
||||||
|
BIN
share/images/settings_inactive.png
Normal file
BIN
share/images/settings_inactive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 513 B |
Loading…
Reference in New Issue
Block a user