Fix errors from commit f2b697 with --hide-ui-dir-config
https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/f2b69709eaff88fc3a2bd49585556ec0883bf5ea
This commit is contained in:
+6
-4
@@ -1446,17 +1446,19 @@ def create_ui(wrap_gradio_gpu_call):
|
||||
continue
|
||||
|
||||
oldval = opts.data.get(key, None)
|
||||
|
||||
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
|
||||
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user