webui: fix theme from --webui-config-file not applied on first load (fresh localStorage) (#22902)

This commit is contained in:
Pascal 2026-05-15 19:25:38 +02:00 committed by GitHub
parent 18d1717d62
commit 8be1786707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -357,6 +357,11 @@ class SettingsStore {
for (const [key, value] of Object.entries(webuiSettings)) {
if (!this.userOverrides.has(key) && value !== undefined) {
setConfigValue(this.config, key, value);
// theme lives in mode-watcher, not just in config -> propagate
if (key === SETTINGS_KEYS.THEME) {
setMode(value as ColorMode);
}
}
}
}