From 553891ce8c43b60b1cc5f616f89b751ff9ca2932 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 7 Nov 2025 19:14:32 -0500 Subject: [PATCH] [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 --- plugins/warp/ui/containers.h | 6 +----- plugins/warp/ui/plugin.cpp | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/warp/ui/containers.h b/plugins/warp/ui/containers.h index d5e822424..b95c32dbc 100644 --- a/plugins/warp/ui/containers.h +++ b/plugins/warp/ui/containers.h @@ -149,7 +149,7 @@ class WarpContainersPane : public QWidget { // Retrieve all available containers const auto all = Warp::Container::All(); - m_containers = all; // copy vector> + m_containers = all; for (const auto& c : m_containers) { @@ -159,10 +159,6 @@ class WarpContainersPane : public QWidget 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 79b6c9ff1..66c80ba39 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); }