fix(ui): enable "Tout mettre à jour" once a provider can update

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 <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-09-12 22:23:00 +02:00
1 parent d789695333
commit b1ad9c619a
1 file changed
+9
+9
View File
@@ -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();