Skip to content

Commit

Permalink
fix: ソロ全解除をして再生すると、全解除前のように聞こえるバグの修正 (#2199)
Browse files Browse the repository at this point in the history
* fix: ソロ全解除をして再生すると、全解除前のように聞こえるバグの修正

* TIME_SIGNATURE系統にRENDERは要らないはず

* 不要な変更なので戻しておく
  • Loading branch information
Hiroshiba authored Aug 4, 2024
1 parent b159696 commit 5e6693a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,13 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
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");
},
},

Expand Down Expand Up @@ -2365,8 +2363,10 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
track.solo = false;
}
},
action({ commit }) {
action({ commit, dispatch }) {
commit("UNSOLO_ALL_TRACKS");

dispatch("RENDER");
},
},

Expand Down Expand Up @@ -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");
},
},

Expand Down

0 comments on commit 5e6693a

Please sign in to comment.