Commits

dwt  committed 6ed94c9

added default PreventLoadingExternalPlugins (bool) to prevent loading external plugins. This is especially usefull if you want to run another (stable) version of adium in the background while you debug the tip of the tree and it is unable to load the plugins that you use in the stable version

  • Participants
  • Parent commits 6748e3a

Comments (0)

Files changed (1)

File Frameworks/Adium Framework/Source/AICorePluginLoader.m

 							confirmLoading:NO
 							   pluginArray:pluginArray];
 	}
-
-	//Load any external plugins the user has installed
-	for (NSString *path in [adium allResourcesForName:EXTERNAL_PLUGIN_FOLDER withExtensions:EXTENSION_ADIUM_PLUGIN]) {
-		[[self class] loadPluginAtPath:path confirmLoading:YES pluginArray:pluginArray];
+	
+	// This is usefull if external plugins aren't ready for the new version yet, while you still run another version
+	// of Adium in the background to collaborate while you test your changes
+	if ( ! [[NSUserDefaults standardUserDefaults] boolForKey:@"PreventLoadingExternalPlugins"]) {
+		//Load any external plugins the user has installed
+		for (NSString *path in [adium allResourcesForName:EXTERNAL_PLUGIN_FOLDER withExtensions:EXTENSION_ADIUM_PLUGIN]) {
+			[[self class] loadPluginAtPath:path confirmLoading:YES pluginArray:pluginArray];
+		}
 	}
 
 	for (NSString *path in deferredPluginPaths) {