[gnome-software/gnome-3-30] update monitor: Fix the number of apps shown in updates applied notification



commit f6f2a1faa04e6a4011d30a7cabe620bca80beb50
Author: Kalev Lember <klember redhat com>
Date:   Sun Dec 2 16:39:53 2018 +0100

    update monitor: Fix the number of apps shown in updates applied notification
    
    When showing "%u Applications Updated" notification, use the number of
    actual apps that got updated, and not the number of low level
    components as the notification text talks only about applications.

 src/gs-update-monitor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 9d939af4..b21fd426 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -223,14 +223,14 @@ _build_autoupdated_notification (GsUpdateMonitor *monitor, GsAppList *list)
                        /* TRANSLATORS: apps were auto-updated and restart is required */
                        title = g_strdup_printf (ngettext ("%u Application Updated — Restart Required",
                                                           "%u Applications Updated — Restart Required",
-                                                          gs_app_list_length (list)),
-                                                gs_app_list_length (list));
+                                                          gs_app_list_length (list_apps)),
+                                                gs_app_list_length (list_apps));
                } else {
                        /* TRANSLATORS: apps were auto-updated */
                        title = g_strdup_printf (ngettext ("%u Application Updated",
                                                           "%u Applications Updated",
-                                                          gs_app_list_length (list)),
-                                                gs_app_list_length (list));
+                                                          gs_app_list_length (list_apps)),
+                                                gs_app_list_length (list_apps));
                }
        }
 


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