feat(ui): load the updates list as soon as the tab opens
Clicking the Updates tab already triggered the check but showed a bare empty table until it completed, and an "Update all" button that stayed disabled for ever. The tab now shows a searching hint, reports "system is up to date" on an empty result, reloads by itself when the core frees up, and enables "Update all" without a row selection. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
3 files changed
+59
No files matched your search
@@ -41,6 +41,9 @@ QTableWidget* table(const QStringList& headers, bool allStretch = false);
|
||||
// so a screen with no result explains itself instead of showing a bare header.
|
||||
QStackedWidget* withEmptyState(QTableWidget* table, const QString& hint);
|
||||
void showEmptyState(QStackedWidget* stack, bool empty);
|
||||
// Rewrites the hint shown while the listing is empty, so a screen can walk the
|
||||
// user through its states ("searching..." then "nothing found").
|
||||
void setEmptyStateText(QStackedWidget* stack, const QString& hint);
|
||||
|
||||
// Small grey counter ("12 paquet(s)").
|
||||
QLabel* countLabel();
|
||||
|
||||
Reference in new issue
Block a user