auto-select new created track; delete selected track will change selection to an remaining track.

This commit is contained in:
Xiaohan-Tian
2025-08-12 18:04:14 -07:00
parent 8b2d4d68f0
commit ee34115423
2 changed files with 45 additions and 4 deletions
+3 -3
View File
@@ -214,9 +214,9 @@ const TrackInfoItem: React.FC<TrackInfoItemProps> = ({
}
// Clear selection if this track is selected
if (selectedTrackId === track.getId().toString()) {
setSelectedTrack(null);
}
// if (selectedTrackId === track.getId().toString()) {
// setSelectedTrack(null);
// }
// Delete the track using the command system
await removeTrack(track.getId());