Implement navigation from jump arrow context menu.

This commit is contained in:
Bartosz Taudul 2022-04-06 23:41:46 +02:00
parent 0e56397c5a
commit 1fd39e90b9
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2558,6 +2558,12 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
TextDisabledUnformatted( "Source not available" );
}
ImGui::EndMenu();
if( ImGui::IsItemClicked() )
{
m_targetAddr = src;
m_selectedAddresses.clear();
m_selectedAddresses.emplace( src );
}
}
ImGui::PopID();
}
@ -2593,6 +2599,12 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
TextDisabledUnformatted( "Source not available" );
}
ImGui::EndMenu();
if( ImGui::IsItemClicked() )
{
m_targetAddr = m_jumpPopupAddr;
m_selectedAddresses.clear();
m_selectedAddresses.emplace( m_jumpPopupAddr );
}
}
}
ImGui::EndMenu();