fix: undo is resetting the mute and solo track button status

This commit is contained in:
Xiaohan-Tian
2026-04-16 22:41:06 -07:00
parent ebcebb5d3b
commit cb4bf59de1
+3 -2
View File
@@ -91,8 +91,9 @@ const TrackInfoItem: React.FC<TrackInfoItemProps> = ({
// Sync mute/solo UI with audio interface state on track/project changes
useEffect(() => {
setMuted(false);
setSolo(false);
const audioInterface = KGAudioInterface.instance();
setMuted(audioInterface.getTrackMuted(track.getId().toString()));
setSolo(audioInterface.getTrackSolo(track.getId().toString()));
}, [allTracks, track]);
// Handle track name edit within the component