mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 15:00:36 +08:00
FIX: use Show instead of Popup to avoid hung in MacOS
Change-Id: I80b4d64f0e50a566cb6cbe0d4e8db696970ead21
This commit is contained in:
parent
9a13ff7146
commit
3f6efa2037
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user