WIP Menus: BeginMenuBar() return false on window without a menu bar (#126)

docking
ocornut 10 years ago
parent 4bd43bdb35
commit 09abf11e56

@ -7446,8 +7446,9 @@ bool ImGui::BeginMenuBar()
ImGuiWindow* window = GetCurrentWindow();
if (window->SkipItems)
return false;
if (!(window->Flags & ImGuiWindowFlags_MenuBar))
return false;
IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar);
IM_ASSERT(!window->DC.MenuBarAppending);
window->DC.MenuBarAppending = true;
ImGui::PushID("##menubar");

Loading…
Cancel
Save