Minor improvements to filament choosers in the plater

This commit is contained in:
Alessandro Ranellucci 2015-06-01 23:52:15 +02:00
parent c2c321c90b
commit 0a9f1c466a
2 changed files with 17 additions and 6 deletions

View file

@ -229,6 +229,10 @@ sub on_select_preset {
'Unsaved Changes', wxYES_NO | wxNO_DEFAULT | wxICON_QUESTION);
if ($confirm->ShowModal == wxID_NO) {
$self->{presets_choice}->SetSelection($self->current_preset);
# trigger the on_presets_changed event so that we also restore the previous value
# in the plater selector
$self->_on_presets_changed;
return;
}
}