Commit e3090300 authored by Soomin Lee's avatar Soomin Lee

GenreModel: Observe didModifyGenres

parent 72f130bc
......@@ -47,6 +47,11 @@ extension GenreModel: MediaLibraryObserver {
updateView?()
}
func medialibrary(_ medialibrary: MediaLibraryService, didModifyGenres genres: [VLCMLGenre]) {
files = swapModels(with: genres)
updateView?()
}
func medialibrary(_ medialibrary: MediaLibraryService, didDeleteGenresWithIds genreIds: [NSNumber]) {
files.removeAll {
genreIds.contains(NSNumber(value: $0.identifier()))
......
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