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:
@@ -235,7 +235,7 @@ void OnCompact(const CommandContext &context)
|
||||
|
||||
// Now we can remove all previous states.
|
||||
auto numStates = undoManager.GetNumStates();
|
||||
undoManager.RemoveStates(numStates - 1);
|
||||
undoManager.RemoveStates(0, numStates - 1);
|
||||
|
||||
// And clear the clipboard
|
||||
clipboard.Clear();
|
||||
|
||||
Reference in New Issue
Block a user