mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Add method to get state of fast enumeration setting
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
9a8af68ddc
commit
8d3b676558
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue