mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
Nav: Modal windows can't be closed with Nav PadCancel. (#787)
This commit is contained in:
parent
efbd8cebe7
commit
96ddfbc973
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue