Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ソロ全解除をして再生すると、全解除前のように聞こえるバグの修正 #2199

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading