mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-01 19:06:20 -04:00
Reload Settings whenever the settings get saved in SettingsDialog
This commit is contained in:
parent
19e9cfbd2c
commit
83b2b9a025
2 changed files with 13 additions and 4 deletions
|
@ -206,7 +206,15 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
"""
|
||||
Open the SettingsDialog.
|
||||
"""
|
||||
SettingsDialog(self.onion, self.qtapp)
|
||||
common.log('OnionShareGui', 'open_settings')
|
||||
|
||||
def reload_settings():
|
||||
common.log('OnionShareGui', 'open_settings', 'settings have changed, reloading')
|
||||
self.settings.load()
|
||||
|
||||
d = SettingsDialog(self.onion, self.qtapp)
|
||||
d.settings_saved.connect(reload_settings)
|
||||
d.exec_()
|
||||
|
||||
def start_server(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue