mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
MSW specific: Fixed a crash on change of the extruder using keyboard
This commit is contained in:
@@ -315,9 +315,11 @@ wxWindow* BitmapChoiceRenderer::CreateEditorCtrl(wxWindow* parent, wxRect labelR
|
|||||||
// to avoid event propagation to other sidebar items
|
// to avoid event propagation to other sidebar items
|
||||||
c_editor->Bind(wxEVT_COMBOBOX, [this](wxCommandEvent& evt) {
|
c_editor->Bind(wxEVT_COMBOBOX, [this](wxCommandEvent& evt) {
|
||||||
evt.StopPropagation();
|
evt.StopPropagation();
|
||||||
|
#ifdef __linux__
|
||||||
// FinishEditing grabs new selection and triggers config update. We better call
|
// FinishEditing grabs new selection and triggers config update. We better call
|
||||||
// it explicitly, automatic update on KILL_FOCUS didn't work on Linux.
|
// it explicitly, automatic update on KILL_FOCUS didn't work on Linux.
|
||||||
this->FinishEditing();
|
this->FinishEditing();
|
||||||
|
#endif
|
||||||
});
|
});
|
||||||
|
|
||||||
return c_editor;
|
return c_editor;
|
||||||
|
|||||||
Reference in New Issue
Block a user