Bugfix: plater wasn't initialized with last settings. #573

This commit is contained in:
Alessandro Ranellucci 2012-08-06 19:18:31 +02:00
parent 9ca090a785
commit 2616c24ffc
3 changed files with 17 additions and 16 deletions

View file

@ -15,7 +15,7 @@ sub new {
my $self = $class->SUPER::new($parent, -1, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL);
$self->{options} = []; # array of option names handled by this tab
$self->{sync_presets_with} = $params{sync_presets_with};
$self->{$_} = $params{$_} for qw(sync_presets_with on_value_change);
EVT_CHOICE($parent, $self->{sync_presets_with}, sub {
$self->{presets_choice}->SetSelection($self->{sync_presets_with}->GetSelection);
$self->on_select_preset;