mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +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()) {
|
||||
drop.autoPosition();
|
||||
drop_down = true;
|
||||
drop.Popup(this);
|
||||
drop.Show(); // Popup() will hung on MacOS
|
||||
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
||||
GetEventHandler()->ProcessEvent(e);
|
||||
}
|
||||
@@ -243,7 +243,7 @@ void ComboBox::keyDown(wxKeyEvent& event) {
|
||||
} else if (drop.HasDismissLongTime()) {
|
||||
drop.autoPosition();
|
||||
drop_down = true;
|
||||
drop.Popup(this);
|
||||
drop.Show(); // Popup() will hung on MacOS
|
||||
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
||||
GetEventHandler()->ProcessEvent(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user