[gnome-software] trivial: Do not show the upgrade panel if the upgrade got taken away



commit f1888a26445c3a673ccd22b5e9010132efecd42b
Author: Richard Hughes <richard hughsie com>
Date:   Mon Nov 14 12:47:04 2016 +0000

    trivial: Do not show the upgrade panel if the upgrade got taken away
    
    This is unlikely to happen, but possible.

 src/gs-shell-updates.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 08000f2..855c44e 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -575,6 +575,7 @@ gs_shell_updates_get_upgrades_cb (GObject *source_object,
                }
        } else if (gs_app_list_length (list) == 0) {
                g_debug ("updates-shell: no upgrades to show");
+               gs_shell_updates_clear_flag (self, GS_SHELL_UPDATES_FLAG_HAS_UPGRADES);
        } else {
                GsApp *app = gs_app_list_index (list, 0);
                g_debug ("got upgrade %s", gs_app_get_id (app));


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