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:
parent
efbd8cebe7
commit
96ddfbc973
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user