diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ca9e33dd..af14f3cd 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1288,4 +1288,9 @@ void View::HighlightThread( uint64_t thread ) m_drawThreadHighlight = thread; } +bool View::WasActive() const +{ + return m_worker.IsConnected(); +} + } diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 0be47b75..6567d570 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -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 );