Ticket #1165: 1165.diff

File 1165.diff, 672 bytes (added by bvierra, 3 years ago)

Propsed patch

  • lib/Padre/Wx/Dialog/Preferences.pm

     
    250250    my $highlighter_selection = $self->get_widget('highlighters')->GetSelection; 
    251251    my $highlighter           = $highlighters->[$highlighter_selection]; 
    252252 
     253    $self->{_highlighters_}{$mime_type_name} = $highlighter; 
     254 
     255        $self->get_widget('description')->SetLabel( Padre::MimeTypes->get_highlighter_explanation($highlighter) ); 
     256        $self->get_widget('mime_type_name')->SetLabel( $mime_types->[$mime_type_selection] ); 
    253257} 
    254258 
    255259