mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
better naming for plugin loading
This commit is contained in:
@@ -111,7 +111,7 @@ NSString *const MPPluginManagerPluginBundleIdentifiyerKey = @"MPPluginManagerPlu
|
|||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
if([self _validateBundle:pluginBundle]) {
|
if([self _validateUniqueBundle:pluginBundle]) {
|
||||||
NSLog(@"Plugin %@ already loaded!", pluginBundle.bundleIdentifier);
|
NSLog(@"Plugin %@ already loaded!", pluginBundle.bundleIdentifier);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,7 @@ NSString *const MPPluginManagerPluginBundleIdentifiyerKey = @"MPPluginManagerPlu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)_validateBundle:(NSBundle *)bundle {
|
- (BOOL)_validateUniqueBundle:(NSBundle *)bundle {
|
||||||
for(MPPlugin *plugin in self.mutablePlugins) {
|
for(MPPlugin *plugin in self.mutablePlugins) {
|
||||||
NSBundle *pluginBundle = [NSBundle bundleForClass:plugin.class];
|
NSBundle *pluginBundle = [NSBundle bundleForClass:plugin.class];
|
||||||
if([pluginBundle.bundleIdentifier isEqualToString:bundle.bundleIdentifier]) {
|
if([pluginBundle.bundleIdentifier isEqualToString:bundle.bundleIdentifier]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user