Skip to content

Commit

Permalink
Fix adding slider control points via context menu not undoing correctly
Browse files Browse the repository at this point in the history
Closes #27985.
  • Loading branch information
bdach committed Apr 25, 2024
1 parent 6905257 commit 94275f1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,12 @@ private void convertToStream()

public override MenuItem[] ContextMenuItems => new MenuItem[]
{
new OsuMenuItem("Add control point", MenuItemType.Standard, () => addControlPoint(rightClickPosition)),
new OsuMenuItem("Add control point", MenuItemType.Standard, () =>
{
changeHandler?.BeginChange();
addControlPoint(rightClickPosition);
changeHandler?.EndChange();
}),
new OsuMenuItem("Convert to stream", MenuItemType.Destructive, convertToStream),
};

Expand Down

0 comments on commit 94275f1

Please sign in to comment.