mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Merge pull request #1031 from mig5/950_persistence_fix
Persistence fix (#950)
This commit is contained in:
commit
e21bf3e80b
@ -438,6 +438,10 @@ class Onion(object):
|
||||
return the onion hostname.
|
||||
"""
|
||||
self.common.log('Onion', 'start_onion_service')
|
||||
# Settings may have changed in the frontend but not updated in our settings object,
|
||||
# such as persistence. Reload the settings now just to be sure.
|
||||
self.settings.load()
|
||||
|
||||
self.auth_string = None
|
||||
|
||||
if not self.supports_ephemeral:
|
||||
|
@ -240,6 +240,9 @@ class ServerStatus(QtWidgets.QWidget):
|
||||
"""
|
||||
# Set the URL fields
|
||||
if self.status == self.STATUS_STARTED:
|
||||
# The backend Onion may have saved new settings, such as the private key.
|
||||
# Reload the settings before saving new ones.
|
||||
self.common.settings.load()
|
||||
self.show_url()
|
||||
|
||||
if self.common.settings.get('save_private_key'):
|
||||
|
Loading…
Reference in New Issue
Block a user