[gnome-software] trivial: Do not show the 'Update All' button when there are no updates



commit 4e9072a098cbdcec18cc4307ee49c7cd301afa0c
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 22 11:17:28 2017 +0100

    trivial: Do not show the 'Update All' button when there are no updates

 src/gs-updates-page.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 56ffeec..9eb503a 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -404,6 +404,7 @@ gs_updates_page_update_ui_state (GsUpdatesPage *self)
        /* headerbar update button */
        gtk_widget_set_visible (self->button_update_all,
                                self->state == GS_UPDATES_PAGE_STATE_IDLE &&
+                               (self->result_flags & GS_UPDATES_PAGE_FLAG_HAS_UPDATES) > 0 &&
                                !_get_has_headers (self));
 
        /* stack */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]