summaryrefslogtreecommitdiff
path: root/plugins/warp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-11-07 19:14:32 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-11-16 19:58:19 -0500
commit987d8bca5173ea13c8f96837997b746c5e478979 (patch)
tree0f8db4169e8ab86477c2adac8acfaf80c80479d3 /plugins/warp
parent51d50c76dcd654b7b0ec187593e31f9c38757823 (diff)
[WARP] Fix container list not refreshing for dynamically added containers
When running the command "WARP\\Load File" it will create a new container and add it to the global container list, we need to show this in the UI
Diffstat (limited to 'plugins/warp')
-rw-r--r--plugins/warp/ui/containers.h6
-rw-r--r--plugins/warp/ui/plugin.cpp1
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/warp/ui/containers.h b/plugins/warp/ui/containers.h
index d5e82242..b95c32db 100644
--- a/plugins/warp/ui/containers.h
+++ b/plugins/warp/ui/containers.h
@@ -149,7 +149,7 @@ private:
{
// Retrieve all available containers
const auto all = Warp::Container::All();
- m_containers = all; // copy vector<Ref<Container>>
+ m_containers = all;
for (const auto& c : m_containers)
{
@@ -159,10 +159,6 @@ private:
auto* widget = new WarpContainerWidget(c, m_stack);
m_stack->addWidget(widget);
}
-
- // Visual style: behave like a vertical tab bar
- // m_list->setFrameShape(QFrame::NoFrame);
- // m_list->setSpacing(0);
}
static int itemHeightPx()
diff --git a/plugins/warp/ui/plugin.cpp b/plugins/warp/ui/plugin.cpp
index 79b6c9ff..66c80ba3 100644
--- a/plugins/warp/ui/plugin.cpp
+++ b/plugins/warp/ui/plugin.cpp
@@ -194,6 +194,7 @@ void WarpSidebarWidget::Update()
{
m_currentFunctionWidget->UpdateMatches();
m_matchedWidget->Update();
+ m_containerWidget->refresh();
// TODO: Obviously this probably should not be called here.
setMatcherActionIcon(false);
}