소스 검색

VideoModel: Use cached notification name

Soomin Lee 7 년 전
부모
커밋
1601ede50c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
     }
 }