1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-22 08:31:14 +01:00

Remove many uses of GetLink in TrackPanel

This commit is contained in:
Paul Licameli
2017-01-03 17:07:12 -05:00
parent 0c0c2c0d1e
commit 669054b4f4
13 changed files with 184 additions and 220 deletions

View File

@@ -34,9 +34,9 @@ UIHandle::Result MinimizeButtonHandle::CommitChanges
auto pTrack = mpTrack.lock();
if (pTrack)
{
pTrack->SetMinimized(!pTrack->GetMinimized());
if (pTrack->GetLink())
pTrack->GetLink()->SetMinimized(pTrack->GetMinimized());
bool wasMinimized = pTrack->GetMinimized();
for (auto channel : TrackList::Channels(pTrack.get()))
channel->SetMinimized(!wasMinimized);
pProject->ModifyState(true);
// Redraw all tracks when any one of them expands or contracts