Commit e4ccab12 authored by Soomin Lee's avatar Soomin Lee

PlaylistModel: Handle deletion callback

parent 84946309
......@@ -41,4 +41,14 @@ extension PlaylistModel: MediaLibraryObserver {
playlists.forEach({ append($0) })
updateView?()
}
func medialibrary(_ medialibrary: VLCMediaLibraryManager, didDeletePlaylistsWithIds playlistsIds: [NSNumber]) {
files = files.filter() {
for id in playlistsIds where $0.identifier() == id.int64Value {
return false
}
return true
}
updateView?()
}
}
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