Skip to content

Commit

Permalink
修复solo和mute按钮更新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYunPlayer committed May 30, 2024
1 parent f699f8b commit 9e5b289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TuneLab/Views/TrackHead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public TrackHead()
mTrackProvider.When(track => track.Name.Modified).Subscribe(() => { if (Track == null) return; mName.Text = Track.Name.Value; }, s);
mTrackProvider.When(track => track.Gain.Modified).Subscribe(() => { if (Track == null) return; mGainSlider.Display(Track.Gain.Value); }, s);
mTrackProvider.When(track => track.Pan.Modified).Subscribe(() => { if (Track == null) return; mPanSlider.Display(Track.Pan.Value); }, s);
mTrackProvider.When(track => track.IsMute.Modified).Subscribe(() => { if (Track == null) return; mMuteToggle.Display(Track.IsMute.Value); }, s);
mTrackProvider.When(track => track.IsSolo.Modified).Subscribe(() => { if (Track == null) return; mSoloToggle.Display(Track.IsSolo.Value); }, s);

MinWidth = 160;

Expand Down

0 comments on commit 9e5b289

Please sign in to comment.