Explorar o código

VideoModel: Use cached notification name

Soomin Lee %!s(int64=7) %!d(string=hai) anos
pai
achega
1601ede50c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     }
 }