mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-01 11:13:00 +08:00
Update ui_settings.py
This commit is contained in:
parent
a037918748
commit
8c6c973614
@ -86,7 +86,13 @@ class UiSettings:
|
||||
opts.save(shared.config_filename)
|
||||
except RuntimeError:
|
||||
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
|
||||
return opts.dumpjson(), f'{len(changed)} settings changed{": " if changed else ""}{", ".join(changed)}.'
|
||||
|
||||
result_output = f'{len(changed)} settings changed:'
|
||||
result_output += "".join(f"<br>{item}" for item in changed)
|
||||
existing_result = self.result.value or ""
|
||||
updated_result = f"{existing_result}<br>{result_output}" if existing_result else result_output
|
||||
|
||||
return opts.dumpjson(), updated_result
|
||||
|
||||
def run_settings_single(self, value, key):
|
||||
if not opts.same_type(value, opts.data_labels[key].default):
|
||||
|
Loading…
Reference in New Issue
Block a user