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:
1 parent
6e29fe1d5c
commit
1bafc60d95
25 files changed
+1149
-199
No files matched your search
+2
-1
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user