mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Allow checking whether View was active.
Currently this only checks if client connection is active.
This commit is contained in:
parent
a8be0bc91e
commit
a8276c41c3
@ -1288,4 +1288,9 @@ void View::HighlightThread( uint64_t thread )
|
||||
m_drawThreadHighlight = thread;
|
||||
}
|
||||
|
||||
bool View::WasActive() const
|
||||
{
|
||||
return m_worker.IsConnected();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ public:
|
||||
~View();
|
||||
|
||||
static bool Draw();
|
||||
bool WasActive() const;
|
||||
|
||||
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
|
||||
void ViewSource( const char* fileName, int line );
|
||||
|
Loading…
Reference in New Issue
Block a user