1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-12-01 10:47:24 +01:00

Fixed issue with activating a Combo() not taking active id (#241)

This commit is contained in:
ocornut 2015-06-09 10:09:12 -06:00
parent 20088303e9
commit 4536668482

View File

@ -7341,6 +7341,7 @@ bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(voi
if (g.IO.MouseClicked[0])
{
menu_toggled = true;
SetActiveId(0);
g.ActiveComboID = (g.ActiveComboID == id) ? 0 : id;
if (g.ActiveComboID)
FocusWindow(window);