mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Remove unnecessary full reimport after initial account configuration in FileProviderExtension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
7863ba8594
commit
8994f31cb9
1 changed files with 0 additions and 14 deletions
|
@ -616,20 +616,6 @@ class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension, NKComm
|
|||
}
|
||||
}
|
||||
|
||||
guard NextcloudFilesDatabaseManager.shared.anyItemMetadatasForAccount(ncAccount!.ncKitAccount) else {
|
||||
// When we have nothing registered, force full refresh.
|
||||
// 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) { error in
|
||||
if error != nil {
|
||||
NSLog("Error reimporting everything, received error: %@", error!.localizedDescription)
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
NSLog("Signalling enumerators for user %@ at server %@", ncAccount!.username, ncAccount!.serverUrl)
|
||||
fpManager.signalEnumerator(for: .workingSet) { error in
|
||||
if error != nil {
|
||||
|
|
Loading…
Reference in a new issue