This reverts commit 8c6c973614.

Revert "Update settings.js"

This reverts commit 4fa673a68a.

Revert "Update style.css"

This reverts commit a037918748.
This commit is contained in:
w-e-w
2024-12-28 17:18:40 +09:00
parent 8c6c973614
commit 45493949cd
3 changed files with 4 additions and 24 deletions

View File

@@ -86,13 +86,7 @@ class UiSettings:
opts.save(shared.config_filename)
except RuntimeError:
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".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
return opts.dumpjson(), f'{len(changed)} settings changed{": " if changed else ""}{", ".join(changed)}.'
def run_settings_single(self, value, key):
if not opts.same_type(value, opts.data_labels[key].default):