Fix bug where lack of stealth mode re-enabled v2 legacy checkbox even if persistence was still enabled

This commit is contained in:
Miguel Jacq 2018-09-15 16:07:08 +10:00
parent 25eed81b00
commit 30ee2290d7
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -463,7 +463,8 @@ class SettingsDialog(QtWidgets.QDialog):
self.hidservauth_copy_button.show()
else:
self.stealth_checkbox.setCheckState(QtCore.Qt.Unchecked)
self.use_legacy_v2_onions_checkbox.setEnabled(True)
if not save_private_key:
self.use_legacy_v2_onions_checkbox.setEnabled(True)
use_autoupdate = self.old_settings.get('use_autoupdate')
if use_autoupdate: