mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
Make # settings changed message grammatically correct
Make the ": " in the settings changed message not show if 0 settings were changed. "0 settings changed: ." -> "0 settings changed."
This commit is contained in:
parent
44c46f0ed3
commit
ce04ba71b8
@ -1450,7 +1450,7 @@ def create_ui():
|
|||||||
opts.save(shared.config_filename)
|
opts.save(shared.config_filename)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
|
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
|
||||||
return opts.dumpjson(), f'{len(changed)} settings changed: {", ".join(changed)}.'
|
return opts.dumpjson(), f'{len(changed)} settings changed{": " if len(changed) > 0 else ""}{", ".join(changed)}.'
|
||||||
|
|
||||||
def run_settings_single(value, key):
|
def run_settings_single(value, key):
|
||||||
if not opts.same_type(value, opts.data_labels[key].default):
|
if not opts.same_type(value, opts.data_labels[key].default):
|
||||||
|
Loading…
Reference in New Issue
Block a user