diff options
| author | Henry Jameson <me@hjkos.com> | 2024-04-22 23:40:39 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-04-22 23:40:39 +0300 |
| commit | 5505a89e8aad717a0b4a7665b23a317110d38cb5 (patch) | |
| tree | c809a7d51823add6b61c4322e6622f221ea27add /src/modules/instance.js | |
| parent | 15dde2d372419fd90c19de7a6f7b9b2458511adc (diff) | |
implement a simple caching system for themes 3
Diffstat (limited to 'src/modules/instance.js')
| -rw-r--r-- | src/modules/instance.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
