mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Ensure file provider domains appear in finder sidebar
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
9a86bb2be3
commit
dcd1628ce8
@ -16,7 +16,7 @@ import FileProvider
|
||||
|
||||
class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension {
|
||||
required init(domain: NSFileProviderDomain) {
|
||||
// TODO: The containing application must create a domain using `NSFileProviderManager.add(_:, completionHandler:)`. The system will then launch the application extension process, call `FileProviderExtension.init(domain:)` to instantiate the extension for that domain, and call methods on the instance.
|
||||
// The containing application must create a domain using `NSFileProviderManager.add(_:, completionHandler:)`. The system will then launch the application extension process, call `FileProviderExtension.init(domain:)` to instantiate the extension for that domain, and call methods on the instance.
|
||||
super.init()
|
||||
}
|
||||
|
||||
|
||||
@ -20,12 +20,15 @@
|
||||
#include "fileprovider.h"
|
||||
|
||||
namespace OCC {
|
||||
|
||||
Q_LOGGING_CATEGORY(lcMacFileProvider, "nextcloud.gui.macfileprovider")
|
||||
|
||||
namespace Mac {
|
||||
|
||||
class FileProviderInitializer::Private {
|
||||
public:
|
||||
Private() {
|
||||
domainIdentifier = @APPLICATION_REV_DOMAIN;
|
||||
domainIdentifier = @SOCKETAPI_TEAM_IDENTIFIER_PREFIX APPLICATION_REV_DOMAIN;
|
||||
name = @APPLICATION_NAME;
|
||||
fileProviderDomain = [[NSFileProviderDomain alloc] initWithIdentifier:domainIdentifier displayName:name];
|
||||
setupFileProvider();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user