mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Use internal NoTabBar flag for central node.
This commit is contained in:
parent
e3acb635a3
commit
bb043f96ee
@ -37,6 +37,8 @@
|
|||||||
#include "TracySourceView.hpp"
|
#include "TracySourceView.hpp"
|
||||||
#include "TracyView.hpp"
|
#include "TracyView.hpp"
|
||||||
|
|
||||||
|
#include "../imgui/imgui_internal.h"
|
||||||
|
|
||||||
#ifndef TRACY_NO_FILESELECTOR
|
#ifndef TRACY_NO_FILESELECTOR
|
||||||
# include "../nfd/nfd.h"
|
# include "../nfd/nfd.h"
|
||||||
#endif
|
#endif
|
||||||
@ -683,6 +685,10 @@ bool View::DrawImpl()
|
|||||||
|
|
||||||
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
|
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
|
||||||
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingInCentralNode );
|
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingInCentralNode );
|
||||||
|
if( ImGuiDockNode* node = ImGui::DockBuilderGetCentralNode( dockspaceId ) )
|
||||||
|
{
|
||||||
|
node->LocalFlags |= ImGuiDockNodeFlags_NoTabBar;
|
||||||
|
}
|
||||||
ImGui::SetNextWindowDockID( dockspaceId );
|
ImGui::SetNextWindowDockID( dockspaceId );
|
||||||
{
|
{
|
||||||
auto& style = ImGui::GetStyle();
|
auto& style = ImGui::GetStyle();
|
||||||
|
Loading…
Reference in New Issue
Block a user