force recompilation on theme-related dispatches

This commit is contained in:
Henry Jameson 2024-11-15 00:38:04 +02:00
parent b6684d90b5
commit 41f5ae30f1

View file

@ -230,7 +230,7 @@ const interfaceMod = {
commit('setOption', { name: 'palette', value }) commit('setOption', { name: 'palette', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
setPaletteCustom ({ dispatch, commit }, value) { setPaletteCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3Palette') dispatch('resetThemeV3Palette')
@ -238,7 +238,7 @@ const interfaceMod = {
commit('setOption', { name: 'paletteCustomData', value }) commit('setOption', { name: 'paletteCustomData', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
async fetchStylesIndex ({ commit, state }) { async fetchStylesIndex ({ commit, state }) {
try { try {
@ -257,7 +257,7 @@ const interfaceMod = {
commit('setOption', { name: 'style', value }) commit('setOption', { name: 'style', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
setStyleCustom ({ dispatch, commit }, value) { setStyleCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3') dispatch('resetThemeV3')
@ -265,7 +265,7 @@ const interfaceMod = {
commit('setOption', { name: 'styleCustomData', value }) commit('setOption', { name: 'styleCustomData', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
async fetchThemesIndex ({ commit, state }) { async fetchThemesIndex ({ commit, state }) {
try { try {
@ -285,7 +285,7 @@ const interfaceMod = {
commit('setOption', { name: 'theme', value }) commit('setOption', { name: 'theme', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
setThemeCustom ({ dispatch, commit }, value) { setThemeCustom ({ dispatch, commit }, value) {
dispatch('resetThemeV3') dispatch('resetThemeV3')
@ -295,7 +295,7 @@ const interfaceMod = {
commit('setOption', { name: 'customTheme', value }) commit('setOption', { name: 'customTheme', value })
commit('setOption', { name: 'customThemeSource', value }) commit('setOption', { name: 'customThemeSource', value })
dispatch('applyTheme') dispatch('applyTheme', { recompile: true })
}, },
resetThemeV3 ({ dispatch, commit }) { resetThemeV3 ({ dispatch, commit }) {
commit('setOption', { name: 'style', value: null }) commit('setOption', { name: 'style', value: null })