Changeset 9584


Ignore:
Timestamp:
12/09/09 19:47:31 (2 years ago)
Author:
garu
Message:

better handling of closing Cat plugin (doesn't crash anymore, yay)

Location:
trunk/Padre-Plugin-Catalyst/lib/Padre/Plugin
Files:
2 edited

Legend:

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

    r9576 r9584  
    557557sub plugin_enable { 
    558558    my $self = shift; 
     559 
    559560    require Padre::Plugin::Catalyst::Panel; 
    560561    $self->{panel} = Padre::Plugin::Catalyst::Panel->new($self); 
     562 
     563    Padre::Current->main->bottom->show($self->{panel}); 
    561564 
    562565# TODO: Please uncomment this to test the Catalyst side-panel 
     
    570573sub plugin_disable { 
    571574    my $self = shift; 
    572     $self->panel->Destroy; 
     575#    $self->panel->Destroy; 
     576    Padre::Current->main->bottom->hide($self->{panel}); 
     577    $self->on_stop_server; 
     578     
    573579     
    574580    # cleanup loaded classes 
  • trunk/Padre-Plugin-Catalyst/lib/Padre/Plugin/Catalyst/Panel.pm

    r9531 r9584  
    6262    $box->Add( $output, 1, Wx::wxGROW ); 
    6363 
    64     # wrapping it up and showing on the screen 
     64    # wrapping it up 
    6565    $self->SetSizer($box); 
    66     Padre::Current->main->bottom->show($self); 
    6766     
    6867    # holding on to some objects we'll need to manipulate later on 
Note: See TracChangeset for help on using the changeset viewer.