[gnome-software/gnome-3-22] trivial: Do not show the upgrade panel if the upgrade got taken away
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Do not show the upgrade panel if the upgrade got taken away
- Date: Tue, 15 Nov 2016 13:20:50 +0000 (UTC)
commit d4cc9330ffa35dd9a56c7679bcc2477869929225
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 da888b5..a48efda 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -554,6 +554,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]