diff --git a/index.js b/index.js index 27b23c3..2f57415 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ const init = () => { registerPlaybackService(), ]).then(() => { let setting = store.getState().common.setting - toggleTranslation(setting.player.isShowTranslation) + toggleTranslation(setting.player.isShowLyricTranslation) if (setting.sync.enable) { connect().catch(err => { if (err.message == SYNC_CODE.unknownServiceAddress) { diff --git a/src/store/modules/common/getter.js b/src/store/modules/common/getter.js index 26152cf..68c3dbf 100644 --- a/src/store/modules/common/getter.js +++ b/src/store/modules/common/getter.js @@ -50,7 +50,7 @@ export const desktopLyricTextPosition = state => state.common.setting.desktopLyr export const timeoutExit = state => state.common.setting.player.timeoutExit export const timeoutExitPlayed = state => state.common.setting.player.timeoutExitPlayed -export const isShowLyricTranslation = state => state.common.setting.player.isShowTranslation +export const isShowLyricTranslation = state => state.common.setting.player.isShowLyricTranslation export const activeApiSourceId = state => state.common.setting.apiSource diff --git a/src/store/modules/common/reducer.js b/src/store/modules/common/reducer.js index bfec9da..dabc15b 100644 --- a/src/store/modules/common/reducer.js +++ b/src/store/modules/common/reducer.js @@ -278,14 +278,14 @@ const mutations = { }, } }, - [TYPES.setIsShowLyricTranslation](state, isShowTranslation) { + [TYPES.setIsShowLyricTranslation](state, isShowLyricTranslation) { return { ...state, setting: { ...state.setting, player: { ...state.setting.player, - isShowTranslation, + isShowLyricTranslation, }, }, }