From 05f0ffd0edc0b78983cc84ddd844bceeb3a95d7c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 12 Sep 2020 15:52:21 +0200 Subject: [PATCH] Add "reconnect" button to connection failure dialogs. --- server/TracyView.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 524c17f8..1fcd2bd3 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -348,6 +348,14 @@ bool View::Draw() ImGui::EndPopup(); return false; } + ImGui::SameLine(); + if( ImGui::Button( "Reconnect" ) ) + { + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + s_instance->m_reconnectRequested = true; + return false; + } ImGui::EndPopup(); } @@ -362,6 +370,14 @@ bool View::Draw() ImGui::EndPopup(); return false; } + ImGui::SameLine(); + if( ImGui::Button( "Reconnect" ) ) + { + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + s_instance->m_reconnectRequested = true; + return false; + } ImGui::EndPopup(); } @@ -376,6 +392,14 @@ bool View::Draw() ImGui::EndPopup(); return false; } + ImGui::SameLine(); + if( ImGui::Button( "Reconnect" ) ) + { + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + s_instance->m_reconnectRequested = true; + return false; + } ImGui::EndPopup(); }