mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Only reimport entire file provider domain if there have been no recorded files when ncAccount is configured
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
9c18d36f41
commit
c4580183e7
1 changed files with 3 additions and 3 deletions
|
@ -155,9 +155,9 @@ class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension, NKComm
|
|||
|
||||
assert(ncAccount != nil)
|
||||
|
||||
if true { // TODO: only run this if we need to refresh root container and it is the first ever sync
|
||||
// This refreshes the entire structure of the FileProvider and calls enumerateItems
|
||||
// rather than enumerateChanges in the enumerator
|
||||
if !NextcloudFilesDatabaseManager.shared.anyItemMetadatasForAccount(ncAccount!.ncKitAccount) {
|
||||
// This refreshes the entire structure of the FileProvider and calls
|
||||
// enumerateItems rather than enumerateChanges in the enumerator
|
||||
NSLog("Signalling manager for user %@ at server %@ to reimport everything", ncAccount!.username, ncAccount!.serverUrl)
|
||||
fpManager.reimportItems(below: .rootContainer, completionHandler: {_ in })
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue