mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
okay maybe not that clever
This commit is contained in:
parent
fd74afd941
commit
254b9e1797
1 changed files with 1 additions and 3 deletions
|
@ -52,15 +52,13 @@ class PasteItemsCommand implements ChartEditorCommand
|
|||
state.currentNoteSelection = addedNotes.copy();
|
||||
state.currentEventSelection = addedEvents.copy();
|
||||
|
||||
// Use some clever trick to know that some notes were ignored.
|
||||
shouldWarn = curAddedNotesLen != addedNotes.length;
|
||||
|
||||
state.saveDataDirty = true;
|
||||
state.noteDisplayDirty = true;
|
||||
state.notePreviewDirty = true;
|
||||
|
||||
state.sortChartData();
|
||||
|
||||
shouldWarn = curAddedNotesLen != addedNotes.length;
|
||||
if (shouldWarn) state.warning('Failed to Paste All Notes', 'Some notes couldn\'t be pasted because they overlapped others.');
|
||||
else
|
||||
state.success('Paste Successful', 'Successfully pasted clipboard contents.');
|
||||
|
|
Loading…
Reference in a new issue