refs #515 [fix] Reload app general config after change preferences

This commit is contained in:
AkiraFukushima 2019-02-22 23:49:44 +09:00
parent 680fae56a4
commit 3281d97ddd
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ const General = {
})
})
},
updateTimeline ({ commit, state }, timeline) {
updateTimeline ({ commit, state, dispatch }, timeline) {
commit('changeLoading', true)
const newTimeline = Object.assign({}, state.general.timeline, timeline)
const newGeneral = Object.assign({}, state.general, {
@ -85,6 +85,7 @@ const General = {
ipcRenderer.removeAllListeners('error-update-preferences')
commit('updateGeneral', conf.general)
commit('changeLoading', false)
dispatch('App/loadPreferences', null, { root: true })
resolve(conf)
})
ipcRenderer.send('update-preferences', config)