mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-26 01:11:27 -05: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
@ -443,7 +443,8 @@ 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)
|
||||||
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):
|
def closeEvent(self, e):
|
||||||
common.log('OnionShareGui', 'closeEvent')
|
common.log('OnionShareGui', 'closeEvent')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user