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();