1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 13:12:17 +01: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:
Paul Licameli
2019-06-26 13:40:56 -04:00
parent 63c7b3740e
commit a5364119eb
13 changed files with 13 additions and 128 deletions

View File

@@ -146,9 +146,6 @@ You are saving directly to a slow external storage device\n\
else
// Add to history
history.PushState(_("Recorded Audio"), _("Record"));
// Refresh the project window
window.RedrawProject();
}
// Write all cached files to disk, if any