mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 03:09:27 +00:00
implemented delegation from menu actions to plugins
This commit is contained in:
26
MacPass/MPPluginEntryActionContext.m
Normal file
26
MacPass/MPPluginEntryActionContext.m
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// MPPluginEntryActionContext.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 15.02.18.
|
||||
// Copyright © 2018 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPPluginEntryActionContext.h"
|
||||
|
||||
@implementation MPPluginEntryActionContext
|
||||
|
||||
- (instancetype)init {
|
||||
return [self initWithPlugin:nil entries:nil];
|
||||
}
|
||||
|
||||
- (instancetype)initWithPlugin:(MPPlugin<MPEntryActionPlugin> *)plugin entries:(NSArray<KPKEntry *> *)entries {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
_plugin = plugin;
|
||||
_entries = [entries copy];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user