aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-04-22 23:40:39 +0300
committerHenry Jameson <me@hjkos.com>2024-04-22 23:40:39 +0300
commit5505a89e8aad717a0b4a7665b23a317110d38cb5 (patch)
treec809a7d51823add6b61c4322e6622f221ea27add /src/modules
parent15dde2d372419fd90c19de7a6f7b9b2458511adc (diff)
implement a simple caching system for themes 3
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/config.js1
-rw-r--r--src/modules/instance.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/config.js b/src/modules/config.js
index abb57272..46acae41 100644
--- a/src/modules/config.js
+++ b/src/modules/config.js
@@ -28,6 +28,7 @@ export const defaultState = {
theme: undefined,
customTheme: undefined,
customThemeSource: undefined,
+ forceThemeRecompilation: false,
hideISP: false,
hideInstanceWallpaper: false,
hideShoutbox: false,
diff --git a/src/modules/instance.js b/src/modules/instance.js
index 76269ece..a0a9e9ac 100644
--- a/src/modules/instance.js
+++ b/src/modules/instance.js
@@ -377,7 +377,8 @@ const instance = {
commit('setInstanceOption', { name: 'themeData', value: themeData })
// No need to apply theme if there's user theme already
const { customTheme } = rootState.config
- if (customTheme) return
+ const { themeApplied } = rootState.interface
+ if (customTheme || themeApplied) return
// New theme presets don't have 'theme' property, they use 'source'
const themeSource = themeData.source