From 987d8bca5173ea13c8f96837997b746c5e478979 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 7 Nov 2025 19:14:32 -0500 Subject: [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(-) (limited to 'plugins') 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> + 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); } -- cgit v1.3.1