Rename one more "{duplicate -> clone}" reference

This commit is contained in:
Bartłomiej Dach 2022-10-25 21:34:41 +02:00
parent bcdf24b972
commit f5ca447b8e
No known key found for this signature in database

View File

@ -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);
} }