mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 15:47:25 +08:00
Hot fix for 9305535039
This commit is contained in:
parent
275bc52fdf
commit
32c60b070e
@ -862,11 +862,11 @@ void Choice::BUILD() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
temp->Bind(wxEVT_COMBOBOX_DROPDOWN, [this](wxCommandEvent&) { m_is_dropped = true; });
|
temp->Bind(wxEVT_COMBOBOX_DROPDOWN, [this](wxCommandEvent&) { m_is_dropped = true; });
|
||||||
temp->Bind(wxEVT_COMBOBOX_CLOSEUP, [this](wxCommandEvent& evt) {
|
temp->Bind(wxEVT_COMBOBOX_CLOSEUP, [this, temp](wxCommandEvent&) {
|
||||||
// EVT_COMBOBOX_CLOSEUP is called after EVT_COMBOBOX on Windows
|
// EVT_COMBOBOX_CLOSEUP is called after EVT_COMBOBOX on Windows
|
||||||
// so, always set m_suppress_change to "true"
|
// so, always set m_suppress_change to "true"
|
||||||
#ifndef __WXMSW__
|
#ifndef __WXMSW__
|
||||||
if (m_last_selected == evt.GetSelection())
|
if (m_last_selected == temp->GetSelection())
|
||||||
#endif //__WXMSW__
|
#endif //__WXMSW__
|
||||||
m_is_dropped = false;
|
m_is_dropped = false;
|
||||||
});
|
});
|
||||||
|
@ -103,12 +103,12 @@ PresetComboBox::PresetComboBox(wxWindow* parent, Preset::Type preset_type, const
|
|||||||
|
|
||||||
// parameters for an icon's drawing
|
// parameters for an icon's drawing
|
||||||
fill_width_height();
|
fill_width_height();
|
||||||
Bind(wxEVT_COMBOBOX_DROPDOWN, [this](wxCommandEvent& evt) { m_suppress_change = false; });
|
Bind(wxEVT_COMBOBOX_DROPDOWN, [this](wxCommandEvent&) { m_suppress_change = false; });
|
||||||
Bind(wxEVT_COMBOBOX_CLOSEUP, [this](wxCommandEvent& evt) {
|
Bind(wxEVT_COMBOBOX_CLOSEUP, [this](wxCommandEvent&) {
|
||||||
// EVT_COMBOBOX_CLOSEUP is called after EVT_COMBOBOX on Windows
|
// EVT_COMBOBOX_CLOSEUP is called after EVT_COMBOBOX on Windows
|
||||||
// so, always set m_suppress_change to "true"
|
// so, always set m_suppress_change to "true"
|
||||||
#ifndef __WXMSW__
|
#ifndef __WXMSW__
|
||||||
if (m_last_selected == evt.GetSelection())
|
if (m_last_selected == this->GetSelection())
|
||||||
#endif //__WXMSW__
|
#endif //__WXMSW__
|
||||||
m_suppress_change = true;
|
m_suppress_change = true;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user