Marino Faggiana 7 年之前
父節點
當前提交
0199249eed
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      PickerFileProvider/FileProviderEnumeratorWorkingSet.swift

+ 3 - 0
PickerFileProvider/FileProviderEnumeratorWorkingSet.swift

@@ -73,6 +73,9 @@ class FileProviderEnumeratorWorkingSet: NSObject, NSFileProviderEnumerator {
     }
     
     func enumerateChanges(for observer: NSFileProviderChangeObserver, from anchor: NSFileProviderSyncAnchor) {
+        if updateItem != nil {
+            observer.didUpdate([updateItem!])
+        }
         observer.finishEnumeratingChanges(upTo: anchor, moreComing: false)
     }