[gnome-software] trivial: Send notification only once



commit 3b480e084393e0513ba2daeba77dd3cb1b2aad0a
Author: William Hua <william hua canonical com>
Date:   Mon May 23 11:48:36 2016 +0100

    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 916d693..7c123ae 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -427,7 +427,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]