Go back to the Plater tab when closing a preset editor tab

This commit is contained in:
Alessandro Ranellucci 2017-05-21 20:15:09 +02:00
parent 2cdc9b678f
commit 7255db01f9

View File

@ -109,6 +109,9 @@ sub _init_tabpanel {
if ($panel->isa('Slic3r::GUI::PresetEditor')) {
delete $self->{preset_editor_tabs}{$panel->name};
}
wxTheApp->CallAfter(sub {
$self->{tabpanel}->SetSelection(0);
});
});
$panel->AddPage($self->{plater} = Slic3r::GUI::Plater->new($panel), "Plater");