mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Fix duplicate working incorrectly if there is no selection currently made
This commit is contained in:
@ -777,6 +777,10 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
protected void Duplicate()
|
protected void Duplicate()
|
||||||
{
|
{
|
||||||
|
// Avoid attempting to clone if copying is not available (as it may result in pasting something unexpected).
|
||||||
|
if (!canCopy.Value)
|
||||||
|
return;
|
||||||
|
|
||||||
// This is an initial implementation just to get an idea of how people used this function.
|
// This is an initial implementation just to get an idea of how people used this function.
|
||||||
// There are a couple of differences from osu!stable's implementation which will require more work to match:
|
// There are a couple of differences from osu!stable's implementation which will require more work to match:
|
||||||
// - The "clipboard" is not populated during the duplication process.
|
// - The "clipboard" is not populated during the duplication process.
|
||||||
|
Reference in New Issue
Block a user