From 70818b49b9279ce9c17d324739176d35c4f9d5dd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 8 May 2020 01:49:15 +0200 Subject: [PATCH] Force connection popup boolean should decay. --- server/TracyView.cpp | 4 ++-- server/TracyView.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;