UI: Do not save unchanged extension settings to settings.yaml
This commit is contained in:
parent
bb2c4707c4
commit
b3fc2cd887
2 changed files with 13 additions and 8 deletions
|
@ -232,7 +232,9 @@ def save_settings(state, preset, extensions_list, show_controls, theme_state):
|
|||
params = getattr(extension, 'params')
|
||||
for param in params:
|
||||
_id = f"{extension_name}-{param}"
|
||||
output[_id] = params[param]
|
||||
# Only save if different from default value
|
||||
if param not in shared.default_settings or params[param] != shared.default_settings[param]:
|
||||
output[_id] = params[param]
|
||||
|
||||
# Do not save unchanged settings
|
||||
for key in list(output.keys()):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue