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

Non-on-demand client is only able to handle one connection.

This commit is contained in:
Bartosz Taudul
2018-09-09 19:42:06 +02:00
parent 984a711666
commit 9211ce42da
5 changed files with 85 additions and 0 deletions
+20
View File
@@ -460,6 +460,10 @@ bool View::Draw()
{
ImGui::OpenPopup( "Protocol mismatch" );
}
else if( status == HandshakeNotAvailable )
{
ImGui::OpenPopup( "Client not ready" );
}
if( ImGui::BeginPopupModal( "Protocol mismatch", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
{
@@ -477,6 +481,22 @@ bool View::Draw()
ImGui::EndPopup();
}
if( ImGui::BeginPopupModal( "Client not ready", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
{
#ifdef TRACY_EXTENDED_FONT
TextCentered( ICON_FA_LIGHTBULB );
#endif
ImGui::Text( "The client you are trying to connect to is no longer able to sent profiling data,\nbecause another server was already connected to it.\nYou can do the following:\n\n 1. Restart the client application.\n 2. Rebuild the client application with on-demand mode enabled." );
ImGui::Separator();
if( ImGui::Button( "I understand" ) )
{
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
return false;
}
ImGui::EndPopup();
}
return s_instance->DrawImpl();
}