From e9120fd87e06a957a19c00adb3743d007570a15e Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sat, 3 Jun 2017 19:01:40 +1000 Subject: [PATCH] fix the settings icon so it only switches to inactive icon when server is active --- onionshare_gui/onionshare_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 04384142..33830e69 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -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')