mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: remove the event funcs
jira: [STUDIO-12081] Change-Id: Ifb1126c162ec5b50d2a787a2c018b702946fd36f (cherry picked from commit d4ddbe97924b44d1fb19a4e80309c9a9aad42709)
This commit is contained in:
@@ -118,16 +118,6 @@ 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_MOUSEWHEEL, [this](wxMouseEvent& e) {
|
|
||||||
if (m_suppress_change)
|
|
||||||
e.StopPropagation();
|
|
||||||
else
|
|
||||||
e.Skip();
|
|
||||||
});
|
|
||||||
Bind(wxEVT_COMBOBOX_DROPDOWN, [this](wxCommandEvent&) { m_suppress_change = false; });
|
|
||||||
Bind(wxEVT_COMBOBOX_CLOSEUP, [this](wxCommandEvent&) { m_suppress_change = true; });
|
|
||||||
|
|
||||||
Bind(wxEVT_COMBOBOX, &PresetComboBox::OnSelect, this);
|
Bind(wxEVT_COMBOBOX, &PresetComboBox::OnSelect, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ protected:
|
|||||||
|
|
||||||
int m_last_selected;
|
int m_last_selected;
|
||||||
int m_em_unit;
|
int m_em_unit;
|
||||||
bool m_suppress_change { true };
|
|
||||||
|
|
||||||
// BBS: ams
|
// BBS: ams
|
||||||
int m_filament_idx = -1;
|
int m_filament_idx = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user