From ca13264609e9c2667358461be52cf782895841dd Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Sun, 25 Sep 2022 06:34:03 +0100 Subject: [PATCH] Add attr to skip --- modules/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 662396e97..228b3905f 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1038,7 +1038,10 @@ 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,'do_not_save_to_config',False): + return + saved_value = ui_settings.get(key, None) if saved_value is None: ui_settings[key] = getattr(obj, field)