From b1ad9c619ac6fa4b0d34f7212cf2df4a0c902d30 Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sat, 12 Sep 2026 22:23:00 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20enable=20"Tout=20mettre=20=C3=A0=20j?= =?UTF-8?q?our"=20once=20a=20provider=20can=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The button was created disabled and nothing ever re-enabled it, so the browse toolbar offered a dead action while the same command stayed reachable from the dashboard and the tray. Generated with Codebuff 🤖 Co-Authored-By: Codebuff --- src/main-window.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main-window.cpp b/src/main-window.cpp index eb7ee13..45dc511 100644 --- a/src/main-window.cpp +++ b/src/main-window.cpp @@ -312,6 +312,15 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { }); } + // "Tout mettre à jour" is only meaningful with a provider that can update; + // without this it stayed greyed out even when pacman was available. + for (IPackageManager* pm : m_pluginManager->availableManagers()) { + if (pm->canUpdate()) { + m_updateAllButton->setEnabled(true); + break; + } + } + refreshDashboard(); updateStatusBar();