Sfoglia il codice sorgente

VideoModel: Use cached notification name

Soomin Lee 7 anni fa
parent
commit
1601ede50c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)
     }
 }