mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Implement navigation from jump arrow context menu.
This commit is contained in:
parent
0e56397c5a
commit
1fd39e90b9
@ -2558,6 +2558,12 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
|
|||||||
TextDisabledUnformatted( "Source not available" );
|
TextDisabledUnformatted( "Source not available" );
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
if( ImGui::IsItemClicked() )
|
||||||
|
{
|
||||||
|
m_targetAddr = src;
|
||||||
|
m_selectedAddresses.clear();
|
||||||
|
m_selectedAddresses.emplace( src );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
@ -2593,6 +2599,12 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
|
|||||||
TextDisabledUnformatted( "Source not available" );
|
TextDisabledUnformatted( "Source not available" );
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
if( ImGui::IsItemClicked() )
|
||||||
|
{
|
||||||
|
m_targetAddr = m_jumpPopupAddr;
|
||||||
|
m_selectedAddresses.clear();
|
||||||
|
m_selectedAddresses.emplace( m_jumpPopupAddr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
Loading…
Reference in New Issue
Block a user