mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-02 03:16:19 -04:00
Merge branch 'mig5-438_settings_icon_inactive'
This commit is contained in:
commit
3333c81c77
2 changed files with 4 additions and 0 deletions
|
@ -449,6 +449,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')) )
|
||||
else:
|
||||
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings.png')) )
|
||||
|
||||
def closeEvent(self, e):
|
||||
common.log('OnionShareGui', 'closeEvent')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue