Skip to content

Commit

Permalink
Fix: インポート順をクリック順に依存しないようにする (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Oct 27, 2024
1 parent 0bd52d9 commit 54b0640
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Dialog/ImportSongProjectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,16 @@ const handleImportTrack = () => {
throw new Error("project or selected track is not set");
}
// トラックをインポート
const trackIndexes = selectedTrackIndexes.value.toSorted();
if (project.value.type === "vvproj") {
void store.dispatch("COMMAND_IMPORT_VOICEVOX_PROJECT", {
project: project.value.project,
trackIndexes: selectedTrackIndexes.value,
trackIndexes,
});
} else {
void store.dispatch("COMMAND_IMPORT_UTAFORMATIX_PROJECT", {
project: project.value.project,
trackIndexes: selectedTrackIndexes.value,
trackIndexes,
});
}
onDialogOK();
Expand Down

0 comments on commit 54b0640

Please sign in to comment.