mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Add attr to skip
This commit is contained in:
parent
b1320d79b5
commit
ca13264609
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user