Ignore:
Timestamp:
01/27/10 17:40:01 (2 years ago)
Author:
adamk
Message:

Add a ->set method to ORLite to avoid the need to write to specific numeric keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/PluginManager.pm

    r10323 r10324  
    574574    # Should we try to enable the plug-in 
    575575    my $config = $self->plugin_db( $plugin->class ); 
    576     unless ( defined $config->[2] ) { 
    577  
     576    unless ( defined $config->enabled ) { 
    578577        # Do not enable by default 
    579         $config->[2] = 0; 
    580     } 
    581     unless ( $config->[2] ) { 
     578        $config->set( enabled => 0 ); 
     579    } 
     580    unless ( $config->enabled ) { 
    582581        $plugin->status('disabled'); 
    583582        return; 
Note: See TracChangeset for help on using the changeset viewer.