mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
FIX: on mac, the mouse event may triggered even disabled
jira: [STUDIO-11526] Change-Id: Id68f43e1b6d1401c72966f97643d6631f23b87a9 (cherry picked from commit b2b4eabbfb7cb60cb1cb1b5e4fc624e52e956e22)
This commit is contained in:
@@ -278,6 +278,8 @@ void ComboBox::DoSetItemClientData(unsigned int n, void *data)
|
||||
|
||||
void ComboBox::mouseDown(wxMouseEvent &event)
|
||||
{
|
||||
if (!IsEnabled()) { return; } /*on mac, the event may triggered even disabled*/
|
||||
|
||||
SetFocus();
|
||||
if (drop_down) {
|
||||
drop.Hide();
|
||||
|
||||
Reference in New Issue
Block a user