From 5e6693a4e435648c50b54bdfe9803e7365e5397b Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Mon, 5 Aug 2024 00:30:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=BD=E3=83=AD=E5=85=A8=E8=A7=A3?= =?UTF-8?q?=E9=99=A4=E3=82=92=E3=81=97=E3=81=A6=E5=86=8D=E7=94=9F=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E3=80=81=E5=85=A8=E8=A7=A3=E9=99=A4=E5=89=8D?= =?UTF-8?q?=E3=81=AE=E3=82=88=E3=81=86=E3=81=AB=E8=81=9E=E3=81=93=E3=81=88?= =?UTF-8?q?=E3=82=8B=E3=83=90=E3=82=B0=E3=81=AE=E4=BF=AE=E6=AD=A3=20(#2199?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: ソロ全解除をして再生すると、全解除前のように聞こえるバグの修正 * TIME_SIGNATURE系統にRENDERは要らないはず * 不要な変更なので戻しておく --- src/store/singing.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/store/singing.ts b/src/store/singing.ts index 187620a989..1dd3082d8a 100644 --- a/src/store/singing.ts +++ b/src/store/singing.ts @@ -520,15 +520,13 @@ export const singingStore = createPartialStore({ state.timeSignatures = timeSignatures; }, async action( - { commit, dispatch }, + { commit }, { timeSignatures }: { timeSignatures: TimeSignature[] }, ) { if (!isValidTimeSignatures(timeSignatures)) { throw new Error("The time signatures are invalid."); } commit("SET_TIME_SIGNATURES", { timeSignatures }); - - dispatch("RENDER"); }, }, @@ -2365,8 +2363,10 @@ export const singingStore = createPartialStore({ track.solo = false; } }, - action({ commit }) { + action({ commit, dispatch }) { commit("UNSOLO_ALL_TRACKS"); + + dispatch("RENDER"); }, }, @@ -2738,8 +2738,10 @@ export const singingCommandStore = transformCommandStore( mutation(draft) { singingStore.mutations.UNSOLO_ALL_TRACKS(draft, undefined); }, - action({ commit }) { + action({ commit, dispatch }) { commit("COMMAND_UNSOLO_ALL_TRACKS"); + + dispatch("RENDER"); }, },