mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-17 22:35:36 +00:00
Only prompt to highlight thread if cpu usage graph is enabled
This commit is contained in:
@@ -277,7 +277,7 @@ void TimelineItemThread::DrawOverlay( const ImVec2& ul, const ImVec2& dr )
|
||||
|
||||
void TimelineItemThread::DrawExtraPopupItems()
|
||||
{
|
||||
if( ImGui::MenuItem( ICON_FA_TIMELINE " Select in CPU timeline" ) )
|
||||
if( m_view.GetViewData().drawCpuUsageGraph && ImGui::MenuItem( ICON_FA_TIMELINE " Select in CPU timeline" ) )
|
||||
{
|
||||
m_view.HighlightThread( m_thread->id, true );
|
||||
}
|
||||
|
||||
@@ -242,7 +242,11 @@ void View::DrawTimeline()
|
||||
m_msgHighlight.Decay( nullptr );
|
||||
m_zoneSrcLocHighlight.Decay( 0 );
|
||||
m_lockHoverHighlight.Decay( InvalidId );
|
||||
if ( !m_freezeCpuDataSelectedThread )
|
||||
if( !m_vd.drawCpuUsageGraph )
|
||||
{
|
||||
m_freezeCpuDataSelectedThread = 0;
|
||||
}
|
||||
if( !m_freezeCpuDataSelectedThread )
|
||||
{
|
||||
m_drawThreadMigrations.Decay( 0 );
|
||||
m_drawThreadHighlight.Decay( 0 );
|
||||
|
||||
Reference in New Issue
Block a user