diff --git a/lib/Migration/MigrateUserThemeSettings.php b/lib/Migration/MigrateUserThemeSettings.php index 02cdde6..84d1c0e 100644 --- a/lib/Migration/MigrateUserThemeSettings.php +++ b/lib/Migration/MigrateUserThemeSettings.php @@ -83,6 +83,12 @@ public function run(IOutput $output): void $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"); } }