Skip to content

Commit

Permalink
Also migrate enforced theme settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalbeck committed Aug 4, 2024
1 parent 3aa8947 commit 4c85966
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Migration/MigrateUserThemeSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 4c85966

Please sign in to comment.