mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-22 01:54:21 +00:00
WIP Menus: BeginMenuBar() return false on window without a menu bar (#126)
This commit is contained in:
parent
4bd43bdb35
commit
09abf11e56
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue