Ticket #1165: 1165-2.diff

File 1165-2.diff, 663 bytes (added by bvierra, 4 years ago)

Patch to fix the not saving issue

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

     
    251251    my $highlighters          = Padre::MimeTypes->get_highlighters_of_mime_type_name($mime_type_name); 
    252252    my $highlighter_selection = $self->get_widget('highlighters')->GetSelection; 
    253253    my $highlighter           = $highlighters->[$highlighter_selection]; 
     254    $self->{_highlighters_}{$mime_type_name} = $highlighter; 
    254255    $self->get_widget('description')->SetLabel(Padre::MimeTypes->get_highlighter_explanation($highlighter));  
    255256} 
    256257