Commit 3a49c711 authored by Soomin Lee's avatar Soomin Lee

PlaylistModel: Add creation method

parent 20714bce
......@@ -34,6 +34,12 @@ class PlaylistModel: MLBaseModel {
}
files.append(item)
}
// Creates a VLCMLPlaylist appending it and updates linked view
func create(name: String) {
append(medialibrary.createPlaylist(with: name))
updateView?()
}
}
extension PlaylistModel: MediaLibraryObserver {
......
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