mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 08:50:42 +08:00
Call _on_select_preset from _on_change_combobox
This commit is contained in:
parent
fd1a204538
commit
4d23ea916e
@ -88,9 +88,11 @@ void PresetChooser::_on_change_combobox(preset_t preset, wxBitmapComboBox* choic
|
||||
|
||||
// Prompt for unsaved changes and undo selections if cancelled and return early
|
||||
// Callback to close preset editor tab, close editor tabs, reload presets.
|
||||
wxTheApp->CallAfter([this](){
|
||||
|
||||
// this->_on_select_preset(preset);
|
||||
//
|
||||
if (!this->prompt_unsaved_changes()) return;
|
||||
wxTheApp->CallAfter([this,preset]()
|
||||
{
|
||||
this->_on_select_preset(preset);
|
||||
// reload presets; removes the modified mark
|
||||
this->load();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user