From 50ae19acf6003708390ae6696e833cf596621882 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Sun, 25 Sep 2022 06:56:50 +0100 Subject: [PATCH] add custom script source to config path keys --- modules/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui.py b/modules/ui.py index 91f07cd5..54c80df6 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1040,6 +1040,9 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): def loadsave(path, x): def apply_field(obj, field, condition=None): key = path + "/" + field + + if getattr(obj,'custom_script_source',None) is not None: + key = 'customscript/' + obj.custom_script_source + '/' + key if getattr(obj,'do_not_save_to_config',False): return