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



commit b8b85f6f2ff9ca8ace22ce0f515bca9be994cc81
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 9a3b76b3..2fbe0dcd 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]