From 63f0dd72a5c3cc9a645c9c8bee1f316d2ce9ff89 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 23 Oct 2018 19:03:01 +0200 Subject: [PATCH] Allow cancelling pending connection. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 26ea005d..c20a9ebf 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -526,8 +526,9 @@ bool View::DrawImpl() TextCentered( ICON_FA_WIFI ); #endif ImGui::Text( "Waiting for connection..." ); + bool wasCancelled = ImGui::Button( "Cancel" ); ImGui::End(); - return true; + return !wasCancelled; } if( !m_frames ) m_frames = m_worker.GetFramesBase();