Browse Source

VideoModel: Use cached notification name

Soomin Lee 7 years ago
parent
commit
1601ede50c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SharedSources/MediaLibraryModel/VideoModel.swift

+ 1 - 1
SharedSources/MediaLibraryModel/VideoModel.swift

@@ -33,6 +33,6 @@ class VideoModel: MediaLibraryBaseModel {
 extension VideoModel: MediaLibraryObserver {
     func medialibrary(_ medialibrary: VLCMediaLibraryManager, didAddVideo video: [VLCMLMedia]) {
         video.forEach({ append($0) })
-        NotificationCenter.default.post(name: .VLCVideosDidChangeNotification, object: nil)
+        NotificationCenter.default.post(name: notificaitonName, object: nil)
     }
 }