1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-24 15:50:25 +01:00

Nav: Modal windows can't be closed with Nav PadCancel. (#787)

This commit is contained in:
omar 2018-02-01 23:36:22 +01:00
parent efbd8cebe7
commit 96ddfbc973

View File

@ -3005,7 +3005,8 @@ static void ImGui::NavUpdate()
else if (g.OpenPopupStack.Size > 0)
{
// Close open popup/menu
ClosePopupToLevel(g.OpenPopupStack.Size - 1);
if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal))
ClosePopupToLevel(g.OpenPopupStack.Size - 1);
}
else if (g.NavLayer != 0)
{