Changeset 10387

Show
Ignore:
Timestamp:
01/30/10 18:44:12 (7 months ago)
Author:
adamk
Message:

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

Files:
1 modified

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