Add source tooltip in memory frame trees.

This commit is contained in:
Bartosz Taudul 2021-03-27 14:09:40 +01:00
parent 5ebffe388a
commit 9bbffcb67f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -16647,11 +16647,15 @@ void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrame
fileName = m_worker.GetString( frame.file );
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
}
if( ImGui::IsItemClicked( 1 ) )
if( ImGui::IsItemHovered() )
{
if( !ViewDispatch( fileName, frame.line, frame.symAddr ) )
DrawSourceTooltip( fileName, frame.line );
if( ImGui::IsItemClicked( 1 ) )
{
m_callstackTreeBuzzAnim.Enable( idx, 0.5f );
if( !ViewDispatch( fileName, frame.line, frame.symAddr ) )
{
m_callstackTreeBuzzAnim.Enable( idx, 0.5f );
}
}
}