mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Fix skin editor crashing when pasting with nothing in clipboard
This commit is contained in:
parent
4edaaa3083
commit
abbcdaa7f7
@ -510,6 +510,9 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
|
||||
protected void Paste()
|
||||
{
|
||||
if (!canPaste.Value)
|
||||
return;
|
||||
|
||||
changeHandler?.BeginChange();
|
||||
|
||||
var drawableInfo = JsonConvert.DeserializeObject<SerialisedDrawableInfo[]>(clipboard.Content.Value);
|
||||
|
Loading…
Reference in New Issue
Block a user