Commit ca132646 authored by DepFA's avatar DepFA Committed by AUTOMATIC1111

Add attr to skip

parent b1320d79
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment