ENH: remove the event funcs

jira: [STUDIO-12081]
Change-Id: Ifb1126c162ec5b50d2a787a2c018b702946fd36f
(cherry picked from commit d4ddbe97924b44d1fb19a4e80309c9a9aad42709)
This commit is contained in:
xin.zhang 2025-05-16 18:56:21 +08:00 committed by Noisyfox
parent 1e9d825dbb
commit ff003bbda0
2 changed files with 0 additions and 11 deletions

View file

@ -118,16 +118,6 @@ PresetComboBox::PresetComboBox(wxWindow* parent, Preset::Type preset_type, const
// parameters for an icon's drawing
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);
}

View file

@ -123,7 +123,6 @@ protected:
int m_last_selected;
int m_em_unit;
bool m_suppress_change { true };
// BBS: ams
int m_filament_idx = -1;