mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
TransactionScope for performance also when abandoning redo states
This commit is contained in:
@@ -899,7 +899,7 @@ AudacityProject *ProjectManager::OpenProject(
|
||||
window.Zoom( window.GetZoomOfToFit() );
|
||||
// "Project was recovered" replaces "Create new project" in Undo History.
|
||||
auto &undoManager = UndoManager::Get( *pProject );
|
||||
undoManager.RemoveStates(1);
|
||||
undoManager.RemoveStates(0, 1);
|
||||
}
|
||||
|
||||
return pProject;
|
||||
|
||||
Reference in New Issue
Block a user