1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 12:45:09 +08:00

Merge pull request #27993 from bdach/add-slider-control-point-via-context-menu-not-undoing

Fix adding slider control points via context menu not undoing correctly
This commit is contained in:
Dan Balasescu 2024-04-26 01:10:13 +09:00 committed by GitHub
commit 692310d0cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -403,7 +403,12 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
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),
};