mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-02 03:16:19 -04:00
fix the settings icon so it only switches to inactive icon when server is active
This commit is contained in:
parent
b7da267d4b
commit
6b0d66b90d
1 changed files with 2 additions and 1 deletions
|
@ -443,6 +443,7 @@ 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')) )
|
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')) )
|
||||||
|
|
||||||
def closeEvent(self, e):
|
def closeEvent(self, e):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue