1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-28 09:30:56 +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,6 +3005,7 @@ static void ImGui::NavUpdate()
else if (g.OpenPopupStack.Size > 0)
{
// Close open popup/menu
if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal))
ClosePopupToLevel(g.OpenPopupStack.Size - 1);
}
else if (g.NavLayer != 0)