Commit 06bffb5f authored by Soomin Lee's avatar Soomin Lee

AudioModel: Listen to media deletion

parent c7167a21
......@@ -65,4 +65,14 @@ extension AudioModel: MediaLibraryObserver {
audios.forEach({ append($0) })
updateView?()
}
func medialibrary(_ medialibrary: VLCMediaLibraryManager, didDeleteMediaWithIds ids: [NSNumber]) {
files = files.filter() {
for id in ids 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