properly set saved private key/hidservauth string in settings_from_fields, so those values are populated when the SettingsDialog is saved

This commit is contained in:
Miguel Jacq 2017-12-09 08:11:04 +11:00
parent 08c2e106f8
commit 7edd693071
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -565,7 +565,8 @@ class SettingsDialog(QtWidgets.QDialog):
settings.set('close_after_first_download', self.close_after_first_download_checkbox.isChecked())
settings.set('systray_notifications', self.systray_notifications_checkbox.isChecked())
if self.save_private_key_checkbox.isChecked():
settings.set('private_key', settings.get('private_key'))
settings.set('private_key', self.old_settings.get('private_key'))
settings.set('hidservauth_string', self.old_settings.get('hidservauth_string'))
else:
settings.set('private_key', '')
# Also unset the HidServAuth if we are removing our reusable private key