Changeset 10387


Ignore:
Timestamp:
01/30/10 18:44:12 (2 years ago)
Author:
adamk
Message:

Wrap an update lock around the function list visibility state change, and a function list refresh

File:
1 edited

Legend:

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

    r10364 r10387  
    16471647sub show_functions { 
    16481648    my $self = shift; 
    1649     my $on = ( @_ ? ( $_[0] ? 1 : 0 ) : 1 ); 
     1649    my $on   = ( @_ ? ( $_[0] ? 1 : 0 ) : 1 ); 
     1650    my $lock = $self->lock('UPDATE', 'refresh_functions'); 
    16501651    unless ( $on == $self->menu->view->{functions}->IsChecked ) { 
    16511652        $self->menu->view->{functions}->Check($on); 
    16521653    } 
     1654 
    16531655    $self->config->set( main_functions => $on ); 
    1654     $self->config->write; 
    1655  
    16561656    $self->_show_functions($on); 
    1657  
    1658     $self->aui->Update; 
    16591657    $self->ide->save_config; 
    16601658 
Note: See TracChangeset for help on using the changeset viewer.