mirror of
https://github.com/wolfpld/tracy
synced 2025-05-04 06:13:53 +00:00
Force connection popup boolean should decay.
This commit is contained in:
parent
5b29e65bc5
commit
70818b49b9
@ -124,7 +124,7 @@ View::View( const char* addr, int port, ImFont* fixedWidth, ImFont* smallFont, I
|
|||||||
: m_worker( addr, port )
|
: m_worker( addr, port )
|
||||||
, m_staticView( false )
|
, m_staticView( false )
|
||||||
, m_pause( false )
|
, m_pause( false )
|
||||||
, m_forceConnectionPopup( true )
|
, m_forceConnectionPopup( true, true )
|
||||||
, m_frames( nullptr )
|
, m_frames( nullptr )
|
||||||
, m_messagesScrollBottom( true )
|
, m_messagesScrollBottom( true )
|
||||||
, m_smallFont( smallFont )
|
, m_smallFont( smallFont )
|
||||||
@ -518,7 +518,7 @@ bool View::DrawImpl()
|
|||||||
{
|
{
|
||||||
if( m_forceConnectionPopup )
|
if( m_forceConnectionPopup )
|
||||||
{
|
{
|
||||||
m_forceConnectionPopup = false;
|
m_forceConnectionPopup.Decay( false );
|
||||||
ImGui::SetNextWindowPos( viewport->Pos + ImGui::GetCursorPos() );
|
ImGui::SetNextWindowPos( viewport->Pos + ImGui::GetCursorPos() );
|
||||||
}
|
}
|
||||||
ImGui::OpenPopup( "TracyConnectionPopup" );
|
ImGui::OpenPopup( "TracyConnectionPopup" );
|
||||||
|
@ -297,7 +297,7 @@ private:
|
|||||||
std::string m_filename;
|
std::string m_filename;
|
||||||
bool m_staticView;
|
bool m_staticView;
|
||||||
bool m_pause;
|
bool m_pause;
|
||||||
bool m_forceConnectionPopup = false;
|
DecayValue<bool> m_forceConnectionPopup = false;
|
||||||
|
|
||||||
ViewData m_vd;
|
ViewData m_vd;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user