Changes between Version 45 and Version 46 of PadrePluginCookbookRecipie05
- Timestamp:
- 03/15/12 14:12:02 (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PadrePluginCookbookRecipie05
v45 v46 98 98 99 99 # Default, required 100 'Padre::Plugin' => '0.9 2',100 'Padre::Plugin' => '0.94', 101 101 102 102 # used by Main, About and by Padre::Plugin::FormBuilder 103 'Padre::Wx' => '0.9 2',104 'Padre::Wx::Main' => '0.9 2',105 'Padre::Wx::Role::Main' => '0.9 2',106 'Padre::DB' => '0.9 2',107 'Padre::Logger' => '0.9 2',103 'Padre::Wx' => '0.94', 104 'Padre::Wx::Main' => '0.94', 105 'Padre::Wx::Role::Main' => '0.94', 106 'Padre::DB' => '0.94', 107 'Padre::Logger' => '0.94', 108 108 ); 109 109 } … … 258 258 259 259 {{{#!perl 260 sub plugin_disable { 261 my $self = shift; 262 263 # Close the dialog if it is hanging around 264 $self->clean_dialog; 265 266 # Unload all our child classes 267 $self->unload( 268 qw{ 260 # Child modules we need to unload when disabled 261 use constant CHILDREN => qw{ 269 262 Padre::Plugin::Cookbook::Recipe01::Main 270 263 Padre::Plugin::Cookbook::Recipe01::FBP::MainFB … … 279 272 Padre::Plugin::Cookbook::Recipe04::About 280 273 Padre::Plugin::Cookbook::Recipe04::FBP::AboutFB 274 }; 275 276 sub plugin_disable { 277 my $self = shift; 278 279 # Close the dialog if it is hanging around 280 $self->clean_dialog; 281 282 # Unload all our child classes 283 for my $package (CHILDREN) { 284 require Padre::Unload; 285 Padre::Unload->unload($package); 281 286 } 282 );283 287 284 288 $self->SUPER::plugin_disable(@_);
