mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add starter FileProviderSettings objective c class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
2863415428
commit
7e4d643ade
@ -18,6 +18,31 @@
|
||||
|
||||
#include "gui/systray.h"
|
||||
|
||||
// Objective-C settings implementation
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface FileProviderSettings : NSObject
|
||||
|
||||
@property (readonly) NSUserDefaults *userDefaults;
|
||||
|
||||
@end
|
||||
|
||||
@implementation FileProviderSettings
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_userDefaults = NSUserDefaults.standardUserDefaults;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
// End of Objective-C settings implementation
|
||||
|
||||
namespace {
|
||||
constexpr auto fpSettingsQmlPath = "qrc:/qml/src/gui/macOS/ui/FileProviderSettings.qml";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user