mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add completion handler to readdFileProviderDomain method in fileproviderdomainmanager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
810fa8d1ce
commit
002a75bca1
@ -253,7 +253,7 @@ class FileProviderDomainManager::Private {
|
||||
}
|
||||
}
|
||||
|
||||
void readdFileProviderDomain(NSFileProviderDomain * const domain)
|
||||
void readdFileProviderDomain(NSFileProviderDomain * const domain, void (^completionHandler)())
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// Wait for this to finish
|
||||
@ -265,6 +265,8 @@ class FileProviderDomainManager::Private {
|
||||
<< error.code
|
||||
<< error.localizedDescription;
|
||||
}
|
||||
|
||||
completionHandler();
|
||||
}];
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user