imgui: central node auto-hide tab (#2174)

This commit is contained in:
Vinicius Rangel 2025-01-17 16:11:37 -03:00 committed by GitHub
parent 0cee59cbe6
commit 4e8c178aec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,7 +186,8 @@ ImGuiID NewFrame(bool is_reusing_frame) {
Sdl::NewFrame(is_reusing_frame);
ImGui::NewFrame();
ImGuiWindowFlags flags = ImGuiDockNodeFlags_PassthruCentralNode;
ImGuiWindowFlags flags =
ImGuiDockNodeFlags_PassthruCentralNode | ImGuiDockNodeFlags_AutoHideTabBar;
if (!DebugState.IsShowingDebugMenuBar()) {
flags |= ImGuiDockNodeFlags_NoTabBar;
}