fixed random theme not working

closes #2669 and #2668
This commit is contained in:
Miodec 2022-03-10 15:06:28 +01:00
parent b6912c2401
commit ef14a35df4

View file

@ -214,7 +214,7 @@ export function randomizeTheme(): void {
// if (Config.randomTheme === "custom") {
// changeCustomTheme(randomTheme, true);
// } else {
preview(randomTheme, true);
preview(randomTheme, Config.randomTheme === "custom");
// }
if (previousTheme != randomTheme) {