Commit 918e3dd6 authored by Soomin Lee's avatar Soomin Lee

PlaylistModel: Handle deletion

parent 3a49c711
......@@ -35,6 +35,14 @@ class PlaylistModel: MLBaseModel {
func delete(_ items: [VLCMLObject]) {
for playlist in items where playlist is VLCMLPlaylist {
if !(medialibrary.deletePlaylist(with: playlist.identifier())) {
assertionFailure("PlaylistModel: Failed to delete playlist: \(playlist.identifier())")
// Creates a VLCMLPlaylist appending it and updates linked view
func create(name: String) {
append(medialibrary.createPlaylist(with: name))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment