MCPcopy Create free account
hub / github.com/clementgallet/libTAS / EndMainMenuBar

Method EndMainMenuBar

src/external/imgui/imgui_widgets.cpp:7376–7387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7374}
7375
7376void ImGui::EndMainMenuBar()
7377{
7378 EndMenuBar();
7379
7380 // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window
7381 // FIXME: With this strategy we won't be able to restore a NULL focus.
7382 ImGuiContext& g = *GImGui;
7383 if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest)
7384 FocusTopMostWindowUnderOne(g.NavWindow, NULL, NULL, ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild);
7385
7386 End();
7387}
7388
7389static bool IsRootOfOpenMenuSet()
7390{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected