summaryrefslogtreecommitdiff
path: root/plugins/warp/ui/plugin.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-10-07 14:30:37 -0400
committerMason Reed <mason@vector35.com>2025-10-07 14:30:37 -0400
commit3e24f6ab0b373d8718e26a19ac296044cc0d19c6 (patch)
treeb87481dbe7895c2b14761193fce8a6422e452b75 /plugins/warp/ui/plugin.cpp
parentaafb1e7a4ce244b3f0aa25ac201dfbeeff2110e8 (diff)
[WARP] Improved fetch dialog UX
- Respects views fetch batch size and allowed tags - Saves and loads from the view settings instead of qt settings
Diffstat (limited to 'plugins/warp/ui/plugin.cpp')
-rw-r--r--plugins/warp/ui/plugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/warp/ui/plugin.cpp b/plugins/warp/ui/plugin.cpp
index d4860b91..b1cc9a5b 100644
--- a/plugins/warp/ui/plugin.cpp
+++ b/plugins/warp/ui/plugin.cpp
@@ -163,6 +163,9 @@ WarpSidebarWidget::WarpSidebarWidget(BinaryViewRef data) : SidebarWidget("WARP")
tabWidget->addTab(matchedFrame, "Matched Functions");
tabWidget->addTab(containerFrame, "Containers");
+ layout->addWidget(tabWidget);
+ this->setLayout(layout);
+
// Do a full update if analysis has been done, otherwise we may persist old data and not have new data.
m_analysisEvent = new AnalysisCompletionEvent(m_data, [this]() {
ExecuteOnMainThread([this]() {
@@ -170,15 +173,12 @@ WarpSidebarWidget::WarpSidebarWidget(BinaryViewRef data) : SidebarWidget("WARP")
});
});
- std::shared_ptr<WarpFetcher> fetcher = WarpFetcher::Global();
+ const std::shared_ptr<WarpFetcher> fetcher = WarpFetcher::Global();
fetcher->AddCompletionCallback([this]() {
Update();
return KeepCallback;
});
- layout->addWidget(tabWidget);
- this->setLayout(layout);
-
// NOTE: This fetcher is shared with the fetch dialog that is constructed on initialization of this plugin.
m_currentFunctionWidget->SetFetcher(fetcher);
}