fix: undo is resetting the mute and solo track button status
This commit is contained in:
@@ -91,8 +91,9 @@ const TrackInfoItem: React.FC<TrackInfoItemProps> = ({
|
|||||||
|
|
||||||
// Sync mute/solo UI with audio interface state on track/project changes
|
// Sync mute/solo UI with audio interface state on track/project changes
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setMuted(false);
|
const audioInterface = KGAudioInterface.instance();
|
||||||
setSolo(false);
|
setMuted(audioInterface.getTrackMuted(track.getId().toString()));
|
||||||
|
setSolo(audioInterface.getTrackSolo(track.getId().toString()));
|
||||||
}, [allTracks, track]);
|
}, [allTracks, track]);
|
||||||
|
|
||||||
// Handle track name edit within the component
|
// Handle track name edit within the component
|
||||||
|
|||||||
Reference in New Issue
Block a user