mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 12:27:01 +00:00
Fixed issue with activating a Combo() not taking active id (#241)
This commit is contained in:
parent
20088303e9
commit
4536668482
@ -7341,6 +7341,7 @@ bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(voi
|
|||||||
if (g.IO.MouseClicked[0])
|
if (g.IO.MouseClicked[0])
|
||||||
{
|
{
|
||||||
menu_toggled = true;
|
menu_toggled = true;
|
||||||
|
SetActiveId(0);
|
||||||
g.ActiveComboID = (g.ActiveComboID == id) ? 0 : id;
|
g.ActiveComboID = (g.ActiveComboID == id) ? 0 : id;
|
||||||
if (g.ActiveComboID)
|
if (g.ActiveComboID)
|
||||||
FocusWindow(window);
|
FocusWindow(window);
|
||||||
|
Loading…
Reference in New Issue
Block a user