TimelineItemThread can now determine visibility internally.

This commit is contained in:
Bartosz Taudul
2023-03-23 21:55:28 +01:00
parent a141aafaab
commit e321e91c7d
3 changed files with 4 additions and 12 deletions

View File

@@ -259,8 +259,8 @@ void TimelineItemThread::HeaderExtraContents( const TimelineContext& ctx, int of
bool TimelineItemThread::DrawContents( const TimelineContext& ctx, int& offset )
{
const auto res = m_view.DrawThread( ctx, *m_thread, m_draw, m_ctxDraw, m_samplesDraw, offset, m_depth );
if( !res )
m_view.DrawThread( ctx, *m_thread, m_draw, m_ctxDraw, m_samplesDraw, offset, m_depth );
if( m_depth == 0 && m_msgDraw.empty() )
{
auto& crash = m_worker.GetCrashEvent();
return crash.thread == m_thread->id;