[gnome-software/gnome-3-20] trivial: Send notification only once



commit 4abb3e986df6981c583b6ad6ea2002907e19dc4b
Author: William Hua <william hua canonical com>
Date:   Fri May 20 14:17:27 2016 -0400

    trivial: Send notification only once

 src/gs-update-monitor.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index cceaedd..d4f1dcc 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -433,7 +433,6 @@ get_updates_historical_cb (GObject *object, GAsyncResult *res, gpointer data)
                        notification = g_notification_new (_("Software Updates Failed"));
                        /* TRANSLATORS: message when we offline updates have failed */
                        g_notification_set_body (notification, _("An important OS update failed to be 
installed."));
-                       g_application_send_notification (monitor->application, "offline-updates", 
notification);
                        g_notification_add_button (notification, _("Show Details"), 
"app.show-offline-update-error");
                        g_notification_set_default_action (notification, "app.show-offline-update-error");
                        g_application_send_notification (monitor->application, "offline-updates", 
notification);


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