mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
We don't need to instantiate this separately
This commit is contained in:
parent
616880415f
commit
1af2c939a2
@ -51,8 +51,7 @@ class QueueDataSource: NSObject, NSOutlineViewDataSource {
|
|||||||
artist: queueItem.song.artist
|
artist: queueItem.song.artist
|
||||||
)
|
)
|
||||||
|
|
||||||
let encoder = PropertyListEncoder()
|
let data = try! PropertyListEncoder().encode(draggedSong)
|
||||||
let data = try! encoder.encode(draggedSong)
|
|
||||||
|
|
||||||
pasteboardItem.setData(data, forType: .songPasteboardType)
|
pasteboardItem.setData(data, forType: .songPasteboardType)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user