mirror of
https://github.com/ppy/osu
synced 2025-04-11 03:31:46 +00:00
Use bindables in menu items
This commit is contained in:
parent
e8c955ed9b
commit
ce21cfbb03
@ -155,8 +155,8 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
Items = new[]
|
Items = new[]
|
||||||
{
|
{
|
||||||
new EditorMenuItem("Undo", MenuItemType.Standard, undo),
|
new EditorMenuItem("Undo", MenuItemType.Standard, undo) { Enabled = { BindTarget = changeHandler.CanUndo } },
|
||||||
new EditorMenuItem("Redo", MenuItemType.Standard, redo)
|
new EditorMenuItem("Redo", MenuItemType.Standard, redo) { Enabled = { BindTarget = changeHandler.CanRedo } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user