mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-16 16:14:01 +00:00
Popups: calling OpenPopup() on already open popup doesn't close it's child (#126)
Fixed previous commit.
This commit is contained in:
parent
78dc54ab3d
commit
aaefe462bb
@ -3059,8 +3059,11 @@ void ImGui::OpenPopup(const char* str_id)
|
|||||||
if (g.OpenedPopupStack.size() < current_stack_size + 1)
|
if (g.OpenedPopupStack.size() < current_stack_size + 1)
|
||||||
g.OpenedPopupStack.push_back(popup_ref);
|
g.OpenedPopupStack.push_back(popup_ref);
|
||||||
else if (g.OpenedPopupStack[current_stack_size].PopupID != id)
|
else if (g.OpenedPopupStack[current_stack_size].PopupID != id)
|
||||||
|
{
|
||||||
|
g.OpenedPopupStack.resize(current_stack_size+1);
|
||||||
g.OpenedPopupStack[current_stack_size] = popup_ref;
|
g.OpenedPopupStack[current_stack_size] = popup_ref;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void CloseInactivePopups()
|
static void CloseInactivePopups()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user