diff options
author | DepFA <35278260+dfaker@users.noreply.github.com> | 2022-09-25 05:56:50 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-25 06:59:31 +0000 |
commit | 50ae19acf6003708390ae6696e833cf596621882 (patch) | |
tree | 358debbf8b4df2917388c9d1618469ca710af470 /modules/ui.py | |
parent | 31a0fbf1ad0db90cd439c0d072de7753c5a28d95 (diff) | |
download | stable-diffusion-webui-gfx803-50ae19acf6003708390ae6696e833cf596621882.tar.gz stable-diffusion-webui-gfx803-50ae19acf6003708390ae6696e833cf596621882.tar.bz2 stable-diffusion-webui-gfx803-50ae19acf6003708390ae6696e833cf596621882.zip |
add custom script source to config path keys
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
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
|