fix: dark_mode persisted in server .env (not localStorage) — add to saveSettings, getServerSettings, applySyncedSettings

This commit is contained in:
dadaloop82
2026-05-21 18:41:12 +00:00
parent b89df961a6
commit 98426bf861
2 changed files with 7 additions and 6 deletions
+2
View File
@@ -3081,6 +3081,7 @@ function getServerSettings(): void {
'shopping_smart_suggestions' => env('SHOPPING_SMART_SUGGESTIONS', 'true') === 'true',
'shopping_forecast' => env('SHOPPING_FORECAST', 'true') === 'true',
'shopping_auto_add_threshold' => (int)env('SHOPPING_AUTO_ADD_THRESHOLD', '0'),
'dark_mode' => env('DARK_MODE', 'auto'),
]);
}
@@ -3146,6 +3147,7 @@ function saveSettings(): void {
'gdrive_client_id' => 'GDRIVE_CLIENT_ID',
'gdrive_client_secret' => 'GDRIVE_CLIENT_SECRET',
'shopping_mode' => 'SHOPPING_MODE',
'dark_mode' => 'DARK_MODE',
];
// Boolean keys
$boolMap = [