Skip to content

Commit

Permalink
fix: random theme is applied over custom theme (@fehmer)
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer committed Sep 18, 2024
1 parent c3b86ec commit aa16cf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/ts/controllers/theme-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ async function changeThemeList(): Promise<void> {
}

export async function randomizeTheme(): Promise<void> {
if (Config.customTheme && Config.randomTheme !== "custom") return;

if (themesList.length === 0) {
await changeThemeList();
if (themesList.length === 0) return;
Expand Down

0 comments on commit aa16cf5

Please sign in to comment.