1
0
Fork 0
mirror of https://github.com/mwalbeck/nextcloud-breeze-dark.git synced 2025-07-15 14:53:05 +00:00

Also migrate enforced theme settings

(cherry picked from commit 4c85966ff0)
This commit is contained in:
Magnus Walbeck 2024-08-04 15:27:47 +02:00
parent 9810a95c49
commit 3d4e92bc8a
Signed by: mwalbeck
SSH key fingerprint: SHA256:LW2enW+zg6O/tGp+u4fVcpo+4Bn9y1qGj9SxUIBdK3s

View file

@ -83,6 +83,12 @@ class MigrateUserThemeSettings implements IRepairStep
$this->config->setUserValue($user["userid"], "theming", "enabled-themes", json_encode(array_values(array_unique($enabledThemes))));
}
$currentEnforcedTheme = $this->config->getSystemValue("enforce_theme", "");
if ($currentEnforcedTheme === "breezedark") {
$this->config->setSystemValue("enforce_theme", "dark");
}
$this->config->setAppValue("breezedark", "theme_settings_version", "3");
}
}