Use internal NoTabBar flag for central node.

This commit is contained in:
Bartosz Taudul 2020-05-03 13:29:51 +02:00
parent e3acb635a3
commit bb043f96ee

View File

@ -37,6 +37,8 @@
#include "TracySourceView.hpp"
#include "TracyView.hpp"
#include "../imgui/imgui_internal.h"
#ifndef TRACY_NO_FILESELECTOR
# include "../nfd/nfd.h"
#endif
@ -683,6 +685,10 @@ bool View::DrawImpl()
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingInCentralNode );
if( ImGuiDockNode* node = ImGui::DockBuilderGetCentralNode( dockspaceId ) )
{
node->LocalFlags |= ImGuiDockNodeFlags_NoTabBar;
}
ImGui::SetNextWindowDockID( dockspaceId );
{
auto& style = ImGui::GetStyle();