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)

This commit is contained in:
Miguel Jacq 2017-12-09 08:51:30 +11:00
parent bec03bb10e
commit 8e89a65a22
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -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()