From 6c6d356f70ffdb8fe776a6f3322569e46a0ba79d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 18 Sep 2024 02:41:55 +0300 Subject: [PATCH] fix obvious mistakes --- src/modules/interface.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/interface.js b/src/modules/interface.js index 68b51015..4ff8ff0e 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -244,7 +244,7 @@ const interfaceMod = { source: userThemeSource }) } else if (actualThemeName && actualThemeName !== 'custom') { - const themeData = actualThemeName + const themeData = getPreset(actualThemeName) const realThemeData = normalizeThemeData(themeData) if (actualThemeName === instanceThemeName) { // This sole line is the reason why this whole block is above the recompilation check @@ -258,8 +258,7 @@ const interfaceMod = { // If we're not not forced to recompile try using // cache (tryLoadCache return true if load successful) if (!forceRecompile && !themeDebug && tryLoadCache()) { - dispatch('setThemeApplied') - return Promise.resolve() + return dispatch('setThemeApplied') } const realThemeData = result