id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
1260,fix for :- This violates encapsulation,bowtie,Alias,"Fix for:

644         # NOTE: This violates encapsulation. The plugin manager should be
645	        # manipulated from the outside, it shouldn't introspect it's parent IDE

{{{#!diff
Index: lib/Padre/PluginManager.pm
===================================================================
--- lib/Padre/PluginManager.pm	(revision 14987)
+++ lib/Padre/PluginManager.pm	(working copy)
@@ -641,9 +641,9 @@
 		$config->set( enabled => 0 );
 	}
 
-	# NOTE: This violates encapsulation. The plugin manager should be
-	# manipulated from the outside, it shouldn't introspect it's parent IDE
-	unless ( $config->enabled or $self->current->ide->{with_plugin}->{$module} ) {
+	# Is Plugin enabled -> $tuple[0][2] in config.db
+	my @tuple = Padre::DB::Plugin->select('WHERE name = ?',$module);
+	unless ($tuple[0][2]) {
 		$plugin->status('disabled');
 		return;
 	}

}}}",enhancement,closed,minor,,editor,0.87,not relevant,introspection,
