瀏覽代碼

MediaLibraryService: Set medialibraryDidStartRescan as optional

Soomin Lee 5 年之前
父節點
當前提交
a0ee10edd0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SharedSources/MediaLibraryService.swift

+ 2 - 2
SharedSources/MediaLibraryService.swift

@@ -94,7 +94,7 @@ extension NSNotification {
                                      didDeletePlaylistsWithIds playlistsIds: [NSNumber])
 
     // Force Rescan
-    @objc func medialibraryDidStartRescan()
+    @objc optional func medialibraryDidStartRescan()
 }
 
 // MARK: -
@@ -686,7 +686,7 @@ extension MediaLibraryService {
 extension MediaLibraryService {
     func medialibraryDidStartRescan(_ medialibrary: VLCMediaLibrary) {
         for observer in observers {
-            observer.value.observer?.medialibraryDidStartRescan()
+            observer.value.observer?.medialibraryDidStartRescan?()
         }
     }
 }