From: Claudio Cambra Date: Tue, 14 Mar 2023 18:23:49 +0000 (+0100) Subject: Remove unnecessary full reimport after initial account configuration in FileProviderE... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~55^2~104 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8994f31cb9cfc1965850bb9f40410772f2081deb;p=nextcloud-desktop.git Remove unnecessary full reimport after initial account configuration in FileProviderExtension Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift index 909fd0922..f991e013e 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift @@ -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 {