mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 08:29:02 +08:00
Go back to the Plater tab when closing a preset editor tab
This commit is contained in:
parent
2cdc9b678f
commit
7255db01f9
@ -109,6 +109,9 @@ sub _init_tabpanel {
|
|||||||
if ($panel->isa('Slic3r::GUI::PresetEditor')) {
|
if ($panel->isa('Slic3r::GUI::PresetEditor')) {
|
||||||
delete $self->{preset_editor_tabs}{$panel->name};
|
delete $self->{preset_editor_tabs}{$panel->name};
|
||||||
}
|
}
|
||||||
|
wxTheApp->CallAfter(sub {
|
||||||
|
$self->{tabpanel}->SetSelection(0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$panel->AddPage($self->{plater} = Slic3r::GUI::Plater->new($panel), "Plater");
|
$panel->AddPage($self->{plater} = Slic3r::GUI::Plater->new($panel), "Plater");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user