mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Eliminate many calls to RedrawProject & TrackPanel::Refresh()...
... Let the window respond to an undo manager event instead, whenever there is a push or modify Maybe this makes a few unnecessary redraws that did not happen before. If that is important, then we should figure out how to put the logic for eliding the redraw into ProjectWindow, and the extra information needed for the decision into the events, but not make intrusions in other code all over the place.
This commit is contained in:
@@ -30,7 +30,6 @@ void DoSelectTimeAndAudioTracks
|
||||
(AudacityProject &project, bool bAllTime, bool bAllTracks)
|
||||
{
|
||||
auto &tracks = TrackList::Get( project );
|
||||
auto &trackPanel = TrackPanel::Get( project );
|
||||
auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;
|
||||
|
||||
if( bAllTime )
|
||||
@@ -45,7 +44,6 @@ void DoSelectTimeAndAudioTracks
|
||||
t->SetSelected(true);
|
||||
|
||||
ProjectHistory::Get( project ).ModifyState(false);
|
||||
trackPanel.Refresh(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +54,6 @@ void DoSelectTimeAndTracks
|
||||
(AudacityProject &project, bool bAllTime, bool bAllTracks)
|
||||
{
|
||||
auto &tracks = TrackList::Get( project );
|
||||
auto &trackPanel = TrackPanel::Get( project );
|
||||
auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;
|
||||
|
||||
if( bAllTime )
|
||||
@@ -68,7 +65,6 @@ void DoSelectTimeAndTracks
|
||||
t->SetSelected(true);
|
||||
|
||||
ProjectHistory::Get( project ).ModifyState(false);
|
||||
trackPanel.Refresh(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user