diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js index 5fdd5cc7..9825930a 100644 --- a/src/renderer/store/modules/settings.js +++ b/src/renderer/store/modules/settings.js @@ -286,11 +286,20 @@ const customActions = { }) }, - setUpListenerToSyncSettings: ({ commit, getters }) => { - if (getters.getUsingElectron) { + setUpListenerToSyncSettings: ({ commit, dispatch, getters }) => { + const { + getUsingElectron: usingElectron, + settingHasSideEffects + } = getters + + if (usingElectron) { const { ipcRenderer } = require('electron') ipcRenderer.on('syncSetting', (_, setting) => { const { _id, value } = setting + if (settingHasSideEffects(_id)) { + dispatch(defaultSideEffectsTriggerId(_id), value) + } + commit(defaultMutationId(_id), value) }) }