From 5a359aa3768e21b763259032d6170b2b066c98f4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 17 Jun 2019 19:50:34 +0200 Subject: [PATCH] Allow connecting to broadcasting clients. --- profiler/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 7287863e..ec432f30 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -471,7 +471,10 @@ int main( int argc, char** argv ) bool sel = false; ImGuiSelectableFlags flags = ImGuiSelectableFlags_SpanAllColumns; if( badProto ) flags |= ImGuiSelectableFlags_Disabled; - ImGui::Selectable( v.second.address.c_str(), &sel, flags ); + if( ImGui::Selectable( v.second.address.c_str(), &sel, flags ) && !loadThread.joinable() ) + { + view = std::make_unique( v.second.address.c_str(), fixedWidth, SetWindowTitleCallback ); + } ImGui::NextColumn(); if( badProto ) {