mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 03:05:57 +08:00
Don't close preset editor tabs.
This commit is contained in:
parent
59164f7bbb
commit
6d858885ba
@ -690,14 +690,6 @@ sub _on_change_combobox {
|
|||||||
return 0 if !$self->prompt_unsaved_changes;
|
return 0 if !$self->prompt_unsaved_changes;
|
||||||
}
|
}
|
||||||
wxTheApp->CallAfter(sub {
|
wxTheApp->CallAfter(sub {
|
||||||
# Close the preset editor tab if any
|
|
||||||
if (exists $self->GetFrame->{preset_editor_tabs}{$group}) {
|
|
||||||
my $tabpanel = $self->GetFrame->{tabpanel};
|
|
||||||
$tabpanel->DeletePage($tabpanel->GetPageIndex($self->GetFrame->{preset_editor_tabs}{$group}));
|
|
||||||
delete $self->GetFrame->{preset_editor_tabs}{$group};
|
|
||||||
$tabpanel->SetSelection(0); # without this, a newly created tab will not be selected by wx
|
|
||||||
}
|
|
||||||
|
|
||||||
$self->_on_select_preset($group);
|
$self->_on_select_preset($group);
|
||||||
|
|
||||||
# This will remove the "(modified)" mark from any dirty preset handled here.
|
# This will remove the "(modified)" mark from any dirty preset handled here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user