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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user