Changeset 5382


Ignore:
Timestamp:
06/19/09 22:53:20 (3 years ago)
Author:
azawawi
Message:

[Perl 6] highlight if coloring settings are changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6/Preferences.pm

    r5381 r5382  
    6060    # update configuration 
    6161    my $old_p6_highlight = $prefs->{p6_highlight}; 
     62    my $old_colorizer = $prefs->{colorizer}; 
    6263    $prefs->{p6_highlight} = $self->_colorizer_cb->GetValue(); 
    6364    $prefs->{colorizer} = ($self->_colorizer_list->GetSelection() == 0) ?  
     
    6768    $plugin->config_write($prefs); 
    6869 
    69     if($old_p6_highlight != $prefs->{p6_highlight}) { 
    70         $plugin->highlight; 
     70    if($old_p6_highlight != $prefs->{p6_highlight} || $old_colorizer ne $prefs->{colorizer}) { 
     71        # a configuration change for colorizer 
     72        if( $prefs->{p6_highlight} ) { 
     73            $plugin->highlight; 
     74        } 
    7175    } 
    7276     
Note: See TracChangeset for help on using the changeset viewer.