mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-19 16:13:00 +08:00
Fixed bad merge.
This commit is contained in:
parent
594cc4793a
commit
031148dc56
@ -7121,7 +7121,7 @@ static bool IsRootOfOpenMenuSet()
|
|||||||
const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size];
|
const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size];
|
||||||
if (window->DC.NavLayerCurrent != upper_popup->ParentNavLayer)
|
if (window->DC.NavLayerCurrent != upper_popup->ParentNavLayer)
|
||||||
return false;
|
return false;
|
||||||
return upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu) && ImGui::IsWindowChildOf(upper_popup->Window, window, true);
|
return upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu) && ImGui::IsWindowChildOf(upper_popup->Window, window, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled)
|
bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user