mirror of https://github.com/ppy/osu
Fix adding slider control points via context menu not undoing correctly
Closes https://github.com/ppy/osu/issues/27985.
This commit is contained in:
parent
6905257869
commit
94275f148e
|
@ -403,7 +403,12 @@ private void convertToStream()
|
||||||
|
|
||||||
public override MenuItem[] ContextMenuItems => new MenuItem[]
|
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),
|
new OsuMenuItem("Convert to stream", MenuItemType.Destructive, convertToStream),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue