Add custom theme support, token refresh settings and check account login status.

Now launch log viewer has a new look.

Fix an issue that causes credentials method option not working.

Add log view to settings page.
This commit is contained in:
wei committed 2026-10-14 00:31:37 +08:00
1 parent 6e29fe1d5c
commit 1bafc60d95
25 files changed
+1149 -199

No files matched your search

+2 -1
View File
@@ -163,9 +163,10 @@ class SettingsManager:
data = {
section: self._models[section]
.model_validate(self._settings[section])
.model_dump(mode="json")
.model_dump(mode="json", exclude_none=True) # ignore None keys
for section in self._models
}
config_path.parent.mkdir(parents=True, exist_ok=True)
temporary_path = config_path.with_suffix(config_path.suffix + ".tmp")
temporary_path.write_bytes(tomli_w.dumps(data).encode("utf-8"))