summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-03-17 20:28:49 -0700
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-03-24 18:46:48 -0700
commitb7ee952666a067a1d17b37e628d78eabcb794ccb (patch)
tree09f37d5f5bfe227cb4c4c1a2a816bf4b8cfdc68b /plugins
parent13b9cb082d06784ab0d873db420dbd633c0660a3 (diff)
[WARP] Do a partial update of the sidebar UI when navigating instead of a full update
Reduces unnecessary work
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/ui/plugin.cpp7
1 files changed, 6 insertions, 1 deletions
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;
});