fix obvious mistakes

This commit is contained in:
Henry Jameson 2024-09-18 02:41:55 +03:00
parent 7c8308a410
commit 6c6d356f70

View file

@ -244,7 +244,7 @@ const interfaceMod = {
source: userThemeSource source: userThemeSource
}) })
} else if (actualThemeName && actualThemeName !== 'custom') { } else if (actualThemeName && actualThemeName !== 'custom') {
const themeData = actualThemeName const themeData = getPreset(actualThemeName)
const realThemeData = normalizeThemeData(themeData) const realThemeData = normalizeThemeData(themeData)
if (actualThemeName === instanceThemeName) { if (actualThemeName === instanceThemeName) {
// This sole line is the reason why this whole block is above the recompilation check // 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 // If we're not not forced to recompile try using
// cache (tryLoadCache return true if load successful) // cache (tryLoadCache return true if load successful)
if (!forceRecompile && !themeDebug && tryLoadCache()) { if (!forceRecompile && !themeDebug && tryLoadCache()) {
dispatch('setThemeApplied') return dispatch('setThemeApplied')
return Promise.resolve()
} }
const realThemeData = result const realThemeData = result