Merge pull request #5547 from Ju1-js/master

Make "# settings changed" grammatically correct
This commit is contained in:
AUTOMATIC1111 2022-12-10 08:20:22 +03:00 committed by GitHub
commit a42a8e9112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):