Fix of second part of #5531
From the Win 2004 preset combobox lose a focus after change the preset selection and that is why the up/down arrow doesn't work properly. So, set the focus to the combobox explicitly.
This commit is contained in:
parent
1076e077ce
commit
5845957c7d
@ -3558,6 +3558,14 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
|
|||||||
*/
|
*/
|
||||||
wxGetApp().obj_list()->update_object_list_by_printer_technology();
|
wxGetApp().obj_list()->update_object_list_by_printer_technology();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
// From the Win 2004 preset combobox lose a focus after change the preset selection
|
||||||
|
// and that is why the up/down arrow doesn't work properly
|
||||||
|
// (see https://github.com/prusa3d/PrusaSlicer/issues/5531 ).
|
||||||
|
// So, set the focus to the combobox explicitly
|
||||||
|
combo->SetFocus();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
|
void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
|
||||||
|
@ -905,6 +905,13 @@ TabPresetComboBox::TabPresetComboBox(wxWindow* parent, Preset::Type preset_type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
evt.StopPropagation();
|
evt.StopPropagation();
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
// From the Win 2004 preset combobox lose a focus after change the preset selection
|
||||||
|
// and that is why the up/down arrow doesn't work properly
|
||||||
|
// (see https://github.com/prusa3d/PrusaSlicer/issues/5531 ).
|
||||||
|
// So, set the focus to the combobox explicitly
|
||||||
|
this->SetFocus();
|
||||||
|
#endif
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user