[gnome-software] trivial: Ensure we show the banner when upgrades are available
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Ensure we show the banner when upgrades are available
- Date: Thu, 11 May 2017 10:34:42 +0000 (UTC)
commit 3e9a1e2a7c34a2a0c035468507518787257a86c6
Author: Richard Hughes <richard hughsie com>
Date: Thu May 11 11:33:44 2017 +0100
trivial: Ensure we show the banner when upgrades are available
src/gs-updates-page.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index b66c45b..f352a1b 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -545,11 +545,13 @@ gs_updates_page_get_upgrades_cb (GObject *source_object,
} else if (gs_app_list_length (list) == 0) {
g_debug ("updates-shell: no upgrades to show");
gs_updates_page_clear_flag (self, GS_UPDATES_PAGE_FLAG_HAS_UPGRADES);
+ gtk_widget_set_visible (self->upgrade_banner, FALSE);
} else {
GsApp *app = gs_app_list_index (list, 0);
g_debug ("got upgrade %s", gs_app_get_id (app));
gs_upgrade_banner_set_app (GS_UPGRADE_BANNER (self->upgrade_banner), app);
gs_updates_page_set_flag (self, GS_UPDATES_PAGE_FLAG_HAS_UPGRADES);
+ gtk_widget_set_visible (self->upgrade_banner, TRUE);
}
/* only when both set */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]