From 3f6efa20370ae7a67270133dbc0582d18e222ddc Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 4 Aug 2022 11:57:57 +0800 Subject: [PATCH] FIX: use Show instead of Popup to avoid hung in MacOS Change-Id: I80b4d64f0e50a566cb6cbe0d4e8db696970ead21 --- src/slic3r/GUI/Widgets/ComboBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Widgets/ComboBox.cpp b/src/slic3r/GUI/Widgets/ComboBox.cpp index 03b6f5f03..712614667 100644 --- a/src/slic3r/GUI/Widgets/ComboBox.cpp +++ b/src/slic3r/GUI/Widgets/ComboBox.cpp @@ -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); }