commit: 41f5ae30f110c85a69c2f68ba1c0f24f1f9e550e
parent b6684d90b596aee0e573f6612948118518d51de2
Author: Henry Jameson <me@hjkos.com>
Date: Fri, 15 Nov 2024 00:38:04 +0200
force recompilation on theme-related dispatches
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/modules/interface.js b/src/modules/interface.js
@@ -230,7 +230,7 @@ const interfaceMod = {
commit('setOption', { name: 'palette', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
setPaletteCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3Palette')
@@ -238,7 +238,7 @@ const interfaceMod = {
commit('setOption', { name: 'paletteCustomData', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
async fetchStylesIndex ({ commit, state }) {
try {
@@ -257,7 +257,7 @@ const interfaceMod = {
commit('setOption', { name: 'style', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
setStyleCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3')
@@ -265,7 +265,7 @@ const interfaceMod = {
commit('setOption', { name: 'styleCustomData', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
async fetchThemesIndex ({ commit, state }) {
try {
@@ -285,7 +285,7 @@ const interfaceMod = {
commit('setOption', { name: 'theme', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
setThemeCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3')
@@ -295,7 +295,7 @@ const interfaceMod = {
commit('setOption', { name: 'customTheme', value })
commit('setOption', { name: 'customThemeSource', value })
- dispatch('applyTheme')
+ dispatch('applyTheme', { recompile: true })
},
resetThemeV3 ({ dispatch, commit }) {
commit('setOption', { name: 'style', value: null })