Force connection popup boolean should decay.

This commit is contained in:
Bartosz Taudul 2020-05-08 01:49:15 +02:00
parent 5b29e65bc5
commit 70818b49b9
2 changed files with 3 additions and 3 deletions

View File

@ -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" );

View File

@ -297,7 +297,7 @@ private:
std::string m_filename;
bool m_staticView;
bool m_pause;
bool m_forceConnectionPopup = false;
DecayValue<bool> m_forceConnectionPopup = false;
ViewData m_vd;