Changeset 519


Ignore:
Timestamp:
10/26/08 13:25:02 (3 years ago)
Author:
adamk
Message:

Automatically show or hide the Perl menu based on the document type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Padre/Wx/Menu.pm

    r513 r519  
    558558 
    559559    # Create the new menu bar 
    560 return; 
     560    # return; 
    561561    $self->{wx} = Wx::MenuBar->new; 
    562562    $self->{wx}->Append( $self->{file},     "&File"      ); 
     
    568568    } 
    569569    $self->{wx}->Append( $self->{bookmark}, "&Bookmarks" ); 
    570     if ( $self->{plugins} ) { 
    571         $self->{wx}->Append( $self->{plugin}, "Pl&ugins" ); 
    572     } 
     570    $self->{wx}->Append( $self->{plugin},   "Pl&ugins"   ) if $self->{plugin}; 
    573571    $self->{wx}->Append( $self->{window},   "&Window"    ); 
    574572    $self->{wx}->Append( $self->{help},     "&Help"      ); 
     
    576574        $self->{wx}->Append( $self->{experimental}, "E&xperimental" ); 
    577575    } 
     576    $self->win->SetMenuBar( $self->{wx} ); 
    578577 
    579578    return 1; 
Note: See TracChangeset for help on using the changeset viewer.