From 8994f31cb9cfc1965850bb9f40410772f2081deb Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 14 Mar 2023 19:23:49 +0100 Subject: [PATCH] Remove unnecessary full reimport after initial account configuration in FileProviderExtension Signed-off-by: Claudio Cambra --- .../FileProviderExt/FileProviderExtension.swift | 14 -------------- 1 file changed, 14 deletions(-) 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 { -- 2.30.2