[gnome-software/wip/laney/pq: 3/5] gs-update-monitor: Hide "Software Updates Available" notification under Unity



commit a0a4f3d07eff8bb3002729258e0184eda704c2ec
Author: Iain Lane <iain orangesquash org uk>
Date:   Wed Jan 25 14:41:47 2017 +0000

    gs-update-monitor: Hide "Software Updates Available" notification under Unity
    
    This environment already has `update-manager' as the established way for
    users to receive updates, for now.

 src/gs-update-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 4b63e3b..556ddf5 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -94,7 +94,7 @@ notify_offline_update_available (GsUpdateMonitor *monitor)
                g_notification_add_button (n, _("Restart & Install"), "app.reboot-and-install");
                g_notification_set_default_action_and_target (n, "app.set-mode", "s", "updates");
                g_application_send_notification (monitor->application, "updates-available", n);
-       } else {
+       } else if (!gs_utils_is_current_desktop ("Unity")) {
                title = _("Software Updates Available");
                body = _("Important OS and application updates are ready to be installed");
                n = g_notification_new (title);


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