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();