Merge pull request #15231 from light-and-ray/fix_ui-config_for_InputAccordion

fix ui-config for InputAccordion [custom_script_source]
This commit is contained in:
AUTOMATIC1111 2024-03-16 12:35:43 +03:00 committed by GitHub
commit e8613dbc93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ class UiLoadsave:
apply_field(x, 'value', check_dropdown, getattr(x, 'init_field', None))
if type(x) == InputAccordion:
if hasattr(x, 'custom_script_source'):
x.accordion.custom_script_source = x.custom_script_source
if x.accordion.visible:
apply_field(x.accordion, 'visible')
apply_field(x, 'value')