mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
changed API for plugin repository
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
@interface MPPluginRepository : NSObject
|
||||
|
||||
@property (class, strong, readonly) MPPluginRepository *sharedRespoitory;
|
||||
@property (class, strong, readonly) MPPluginRepository *defaultRepository;
|
||||
@property (nonatomic, copy) NSArray<MPPluginRepositoryItem *> *availablePlugins;
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
@dynamic availablePlugins;
|
||||
|
||||
+ (instancetype)sharedRespoitory {
|
||||
+ (instancetype)defaultRepository {
|
||||
static MPPluginRepository *instance;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
|
||||
@@ -61,7 +61,7 @@ typedef NS_ENUM(NSUInteger, MPPluginSegmentType) {
|
||||
}
|
||||
|
||||
- (NSImage *)image {
|
||||
return [[NSWorkspace sharedWorkspace] iconForFileType:@"bundle"];
|
||||
return [NSWorkspace.sharedWorkspace iconForFileType:@"bundle"];
|
||||
}
|
||||
|
||||
- (NSString *)label {
|
||||
|
||||
Reference in New Issue
Block a user