From 1fd39e90b929421328993363c372d6b8a49963aa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Apr 2022 23:41:46 +0200 Subject: [PATCH] Implement navigation from jump arrow context menu. --- server/TracySourceView.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 33ceb0c0..72caccd6 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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();