mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 23:45:04 -04:00
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:
parent
08c2e106f8
commit
7edd693071
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue