diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e3c45439..2c484011 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -124,7 +124,7 @@ View::View( const char* addr, int port, ImFont* fixedWidth, ImFont* smallFont, I : m_worker( addr, port ) , m_staticView( false ) , m_pause( false ) - , m_forceConnectionPopup( true ) + , m_forceConnectionPopup( true, true ) , m_frames( nullptr ) , m_messagesScrollBottom( true ) , m_smallFont( smallFont ) @@ -518,7 +518,7 @@ bool View::DrawImpl() { if( m_forceConnectionPopup ) { - m_forceConnectionPopup = false; + m_forceConnectionPopup.Decay( false ); ImGui::SetNextWindowPos( viewport->Pos + ImGui::GetCursorPos() ); } ImGui::OpenPopup( "TracyConnectionPopup" ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index aa1874a1..52b479a8 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -297,7 +297,7 @@ private: std::string m_filename; bool m_staticView; bool m_pause; - bool m_forceConnectionPopup = false; + DecayValue m_forceConnectionPopup = false; ViewData m_vd;