mirror of
https://github.com/ppy/osu
synced 2025-02-18 11:26:57 +00:00
Rename one more "{duplicate -> clone}" reference
This commit is contained in:
parent
bcdf24b972
commit
f5ca447b8e
@ -304,7 +304,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
cutMenuItem = new EditorMenuItem("Cut", MenuItemType.Standard, Cut),
|
cutMenuItem = new EditorMenuItem("Cut", MenuItemType.Standard, Cut),
|
||||||
copyMenuItem = new EditorMenuItem("Copy", MenuItemType.Standard, Copy),
|
copyMenuItem = new EditorMenuItem("Copy", MenuItemType.Standard, Copy),
|
||||||
pasteMenuItem = new EditorMenuItem("Paste", MenuItemType.Standard, Paste),
|
pasteMenuItem = new EditorMenuItem("Paste", MenuItemType.Standard, Paste),
|
||||||
duplicateMenuItem = new EditorMenuItem("Clone", MenuItemType.Standard, Clone),
|
cloneMenuItem = new EditorMenuItem("Clone", MenuItemType.Standard, Clone),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new MenuItem("View")
|
new MenuItem("View")
|
||||||
@ -746,7 +746,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
private EditorMenuItem cutMenuItem;
|
private EditorMenuItem cutMenuItem;
|
||||||
private EditorMenuItem copyMenuItem;
|
private EditorMenuItem copyMenuItem;
|
||||||
private EditorMenuItem duplicateMenuItem;
|
private EditorMenuItem cloneMenuItem;
|
||||||
private EditorMenuItem pasteMenuItem;
|
private EditorMenuItem pasteMenuItem;
|
||||||
|
|
||||||
private readonly BindableWithCurrent<bool> canCut = new BindableWithCurrent<bool>();
|
private readonly BindableWithCurrent<bool> canCut = new BindableWithCurrent<bool>();
|
||||||
@ -759,7 +759,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
canCopy.Current.BindValueChanged(copy =>
|
canCopy.Current.BindValueChanged(copy =>
|
||||||
{
|
{
|
||||||
copyMenuItem.Action.Disabled = !copy.NewValue;
|
copyMenuItem.Action.Disabled = !copy.NewValue;
|
||||||
duplicateMenuItem.Action.Disabled = !copy.NewValue;
|
cloneMenuItem.Action.Disabled = !copy.NewValue;
|
||||||
}, true);
|
}, true);
|
||||||
canPaste.Current.BindValueChanged(paste => pasteMenuItem.Action.Disabled = !paste.NewValue, true);
|
canPaste.Current.BindValueChanged(paste => pasteMenuItem.Action.Disabled = !paste.NewValue, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user