From 8e89a65a22ea960ee601937d2e6028e9e95fda97 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sat, 9 Dec 2017 08:51:30 +1100 Subject: [PATCH] set the 'Save Private Key' button to enabled when showing it, but when it's not already been pressed (in case private key is removed later via SettingsDialog) --- onionshare_gui/server_status.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 77964677..1a5d0807 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -148,6 +148,7 @@ class ServerStatus(QtWidgets.QVBoxLayout): self.copy_url_button.show() if not self.settings.get('private_key'): self.save_private_key_button.show() + self.save_private_key_button.setEnabled(True) if self.app.stealth: self.copy_hidservauth_button.show()