imgui: central node auto-hide tab

This commit is contained in:
Vinicius Rangel 2025-01-17 15:55:24 -03:00
parent 0cee59cbe6
commit 3e4a0c7345
No known key found for this signature in database
GPG Key ID: A5B154D904B761D9

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;
}