diff --git a/src/composables/useLyricInput.ts b/src/composables/useLyricInput.ts index ab06354e45..f37b89a17b 100644 --- a/src/composables/useLyricInput.ts +++ b/src/composables/useLyricInput.ts @@ -50,7 +50,7 @@ export const useLyricInput = () => { newNotes.push({ ...note, lyric }); } previewLyrics.value = new Map(); - void store.dispatch("COMMAND_UPDATE_NOTES", { + void store.actions.COMMAND_UPDATE_NOTES({ notes: newNotes, trackId: store.getters.SELECTED_TRACK_ID, }); diff --git a/src/composables/useRootMiscSetting.ts b/src/composables/useRootMiscSetting.ts index b87ff0eafd..10359f4b81 100644 --- a/src/composables/useRootMiscSetting.ts +++ b/src/composables/useRootMiscSetting.ts @@ -11,7 +11,7 @@ export const useRootMiscSetting = ( const setter = (value: RootMiscSettingType[T]) => { // Vuexの型処理でUnionが解かれてしまうのを迂回している // FIXME: このワークアラウンドをなくす - void store.dispatch("SET_ROOT_MISC_SETTING", { + void store.actions.SET_ROOT_MISC_SETTING({ key: key as never, value, }); diff --git a/src/plugins/ipcMessageReceiverPlugin.ts b/src/plugins/ipcMessageReceiverPlugin.ts index 011d3710c7..41d7df00f8 100644 --- a/src/plugins/ipcMessageReceiverPlugin.ts +++ b/src/plugins/ipcMessageReceiverPlugin.ts @@ -10,31 +10,31 @@ export const ipcMessageReceiver: Plugin = { ) => { window.backend.onReceivedIPCMsg({ LOAD_PROJECT_FILE: (_, { filePath, confirm } = {}) => - void options.store.dispatch("LOAD_PROJECT_FILE", { filePath, confirm }), + void options.store.actions.LOAD_PROJECT_FILE({ filePath, confirm }), - DETECT_MAXIMIZED: () => options.store.dispatch("DETECT_MAXIMIZED"), + DETECT_MAXIMIZED: () => options.store.actions.DETECT_MAXIMIZED(), - DETECT_UNMAXIMIZED: () => options.store.dispatch("DETECT_UNMAXIMIZED"), + DETECT_UNMAXIMIZED: () => options.store.actions.DETECT_UNMAXIMIZED(), DETECTED_ENGINE_ERROR: (_, { engineId }) => - options.store.dispatch("DETECTED_ENGINE_ERROR", { engineId }), + options.store.actions.DETECTED_ENGINE_ERROR({ engineId }), DETECT_PINNED: () => { - void options.store.dispatch("DETECT_PINNED"); + void options.store.actions.DETECT_PINNED(); }, DETECT_UNPINNED: () => { - void options.store.dispatch("DETECT_UNPINNED"); + void options.store.actions.DETECT_UNPINNED(); }, DETECT_ENTER_FULLSCREEN: () => - options.store.dispatch("DETECT_ENTER_FULLSCREEN"), + options.store.actions.DETECT_ENTER_FULLSCREEN(), DETECT_LEAVE_FULLSCREEN: () => - options.store.dispatch("DETECT_LEAVE_FULLSCREEN"), + options.store.actions.DETECT_LEAVE_FULLSCREEN(), CHECK_EDITED_AND_NOT_SAVE: (_, obj) => { - void options.store.dispatch("CHECK_EDITED_AND_NOT_SAVE", obj); + void options.store.actions.CHECK_EDITED_AND_NOT_SAVE(obj); }, DETECT_RESIZED: debounce(