mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-25 00:00:40 +01:00
Nav: Modal windows can't be closed with Nav PadCancel. (#787)
This commit is contained in:
parent
efbd8cebe7
commit
96ddfbc973
@ -3005,6 +3005,7 @@ static void ImGui::NavUpdate()
|
|||||||
else if (g.OpenPopupStack.Size > 0)
|
else if (g.OpenPopupStack.Size > 0)
|
||||||
{
|
{
|
||||||
// Close open popup/menu
|
// Close open popup/menu
|
||||||
|
if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal))
|
||||||
ClosePopupToLevel(g.OpenPopupStack.Size - 1);
|
ClosePopupToLevel(g.OpenPopupStack.Size - 1);
|
||||||
}
|
}
|
||||||
else if (g.NavLayer != 0)
|
else if (g.NavLayer != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user