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:
1 parent
d789695333
commit
b1ad9c619a
1 file changed
+9
@@ -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();
|
refreshDashboard();
|
||||||
updateStatusBar();
|
updateStatusBar();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user