mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
parent
89722fb5e4
commit
467d8b967b
@ -1446,17 +1446,19 @@ def create_ui(wrap_gradio_gpu_call):
|
||||
continue
|
||||
|
||||
oldval = opts.data.get(key, None)
|
||||
|
||||
setattr(opts, key, value)
|
||||
|
||||
try:
|
||||
setattr(opts, key, value)
|
||||
except RuntimeError:
|
||||
continue
|
||||
if oldval != value:
|
||||
if opts.data_labels[key].onchange is not None:
|
||||
opts.data_labels[key].onchange()
|
||||
|
||||
changed += 1
|
||||
|
||||
opts.save(shared.config_filename)
|
||||
|
||||
try:
|
||||
opts.save(shared.config_filename)
|
||||
except RuntimeError:
|
||||
return opts.dumpjson(), f'{changed} settings changed without save.'
|
||||
return opts.dumpjson(), f'{changed} settings changed.'
|
||||
|
||||
def run_settings_single(value, key):
|
||||
|
Loading…
Reference in New Issue
Block a user