Changeset 4189


Ignore:
Timestamp:
04/28/09 08:12:48 (3 years ago)
Author:
jquelin
Message:

storing dictionary in plugin preference

File:
1 edited

Legend:

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

    r4188 r4189  
    5353sub _on_butok_clicked { 
    5454    my ($self) = @_; 
     55    my $plugin = $self->_plugin; 
     56 
     57    # read plugin preferences 
     58    my $prefs  = $plugin->config_read || {}; 
     59 
     60    # overwrite dictionary preference 
     61    my $dic = $self->_dict_combo->GetValue; 
     62    $prefs->{dictionary} = $dic; 
     63 
     64    # store plugin preferences 
     65    $plugin->config_write($prefs); 
    5566    $self->Destroy; 
    5667} 
Note: See TracChangeset for help on using the changeset viewer.