Add attr to skip
This commit is contained in:
parent
b1320d79b5
commit
ca13264609
1 changed files with 4 additions and 1 deletions
|
@ -1039,6 +1039,9 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue