1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Display trace parameters only when the connection is active.

This commit is contained in:
Bartosz Taudul 2019-11-26 00:57:06 +01:00
parent 7963617f86
commit cc87cebee3

View File

@ -1070,6 +1070,8 @@ bool View::DrawConnection()
ImGui::EndPopup(); ImGui::EndPopup();
} }
if( m_worker.IsConnected() )
{
const auto& params = m_worker.GetParameters(); const auto& params = m_worker.GetParameters();
if( !params.empty() ) if( !params.empty() )
{ {
@ -1112,6 +1114,7 @@ bool View::DrawConnection()
ImGui::TreePop(); ImGui::TreePop();
} }
} }
}
return true; return true;
} }