mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 00:15:11 -04:00
fix the settings icon so it only switches to inactive icon when server is active
This commit is contained in:
parent
6626e7d67e
commit
e9120fd87e
1 changed files with 2 additions and 1 deletions
|
@ -443,7 +443,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
Disable the Settings button while an OnionShare server is 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):
|
||||
common.log('OnionShareGui', 'closeEvent')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue