From: Claudio Cambra Date: Mon, 5 Feb 2024 10:42:12 +0000 (+0800) Subject: Add method to get state of fast enumeration setting X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~111^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d3b676558035f8f9792d7c14f096ae9940e3462;p=nextcloud-desktop.git Add method to get state of fast enumeration setting Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationProtocol.h b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationProtocol.h index 47eb6c95b..481f541c5 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationProtocol.h +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationProtocol.h @@ -25,6 +25,7 @@ password:(NSString *)password; - (void)removeAccountConfig; - (void)createDebugLogStringWithCompletionHandler:(void(^)(NSString *debugLogString, NSError *error))completionHandler; +- (void)getFastEnumerationStateWithCompletionHandler:(void(^)(BOOL enabled, BOOL set))completionHandler; @end diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationService.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationService.swift index ccdc1dc90..3b9364141 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationService.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationService.swift @@ -77,4 +77,10 @@ class ClientCommunicationService: NSObject, NSFileProviderServiceSource, NSXPCLi completionHandler(logs.joined(separator: "\n"), nil) } } + + func getFastEnumerationState(completionHandler: @escaping (Bool, Bool) -> Void) { + let enabled = fpExtension.config.fastEnumerationEnabled + let set = fpExtension.config.fastEnumerationSet + completionHandler(enabled, set) + } }