From b7ee952666a067a1d17b37e628d78eabcb794ccb Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 17 Mar 2026 20:28:49 -0700 Subject: [WARP] Do a partial update of the sidebar UI when navigating instead of a full update Reduces unnecessary work --- plugins/warp/ui/plugin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/warp/ui/plugin.cpp') diff --git a/plugins/warp/ui/plugin.cpp b/plugins/warp/ui/plugin.cpp index 0cf8deea..93900ed9 100644 --- a/plugins/warp/ui/plugin.cpp +++ b/plugins/warp/ui/plugin.cpp @@ -174,7 +174,12 @@ WarpSidebarWidget::WarpSidebarWidget(BinaryViewRef data) : SidebarWidget("WARP") m_fetcher = WarpFetcher::Global(); m_callbackId = m_fetcher->AddCompletionCallback([this]() { - ExecuteOnMainThread([this]() { Update(); }); + ExecuteOnMainThread([this]() { + // Instead of doing a full update after fetching, we only want to make sure the current function has + // up-to-date matches, since the other two tabs (all matches, container list) do not get populated with + // additional information or manage their own updates (e.g. container source list). + m_currentFunctionWidget->UpdateMatches(); + }); return KeepCallback; }); -- cgit v1.3.1