Fix saving of UI defaults to settings.yaml - Fixes #5592 (#5794)

This commit is contained in:
Ashley Kleynhans 2024-04-11 23:19:16 +02:00 committed by GitHub
parent 3e3a7c4250
commit 70c637bf90
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,9 @@ def save_settings(state, preset, extensions_list, show_controls, theme_state):
# Save extension values in the UI
for extension_name in extensions_list:
extension = getattr(extensions, extension_name).script
extension = getattr(extensions, extension_name, None)
if extension:
extension = extension.script
if hasattr(extension, 'params'):
params = getattr(extension, 'params')
for param in params: