aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDepFA <35278260+dfaker@users.noreply.github.com>2022-09-25 06:34:03 +0100
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-25 08:46:09 +0300
commitca13264609e9c2667358461be52cf782895841dd (patch)
treee5d2bdd7bee9bdf9ac10b9f6e82161b4d3148a29 /modules
parentb1320d79b5816e229eac0602f2e7e18141b088aa (diff)
Add attr to skip
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 662396e9..228b3905 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)