mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
FIX: use Show instead of Popup to avoid hung in MacOS
Change-Id: I80b4d64f0e50a566cb6cbe0d4e8db696970ead21
This commit is contained in:
@@ -216,7 +216,7 @@ void ComboBox::mouseDown(wxMouseEvent &event)
|
|||||||
} else if (drop.HasDismissLongTime()) {
|
} else if (drop.HasDismissLongTime()) {
|
||||||
drop.autoPosition();
|
drop.autoPosition();
|
||||||
drop_down = true;
|
drop_down = true;
|
||||||
drop.Popup(this);
|
drop.Show(); // Popup() will hung on MacOS
|
||||||
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
||||||
GetEventHandler()->ProcessEvent(e);
|
GetEventHandler()->ProcessEvent(e);
|
||||||
}
|
}
|
||||||
@@ -243,7 +243,7 @@ void ComboBox::keyDown(wxKeyEvent& event) {
|
|||||||
} else if (drop.HasDismissLongTime()) {
|
} else if (drop.HasDismissLongTime()) {
|
||||||
drop.autoPosition();
|
drop.autoPosition();
|
||||||
drop_down = true;
|
drop_down = true;
|
||||||
drop.Popup(this);
|
drop.Show(); // Popup() will hung on MacOS
|
||||||
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
||||||
GetEventHandler()->ProcessEvent(e);
|
GetEventHandler()->ProcessEvent(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user