[gnome-software/wip/ubuntu-3-24: 5/14] gs-update-monitor: Hide "Software Updates Available" notification under Unity
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-24: 5/14] gs-update-monitor: Hide "Software Updates Available" notification under Unity
- Date: Wed, 12 Jul 2017 04:47:23 +0000 (UTC)
commit 5acb21d49105c68f4a501a8c9e9c8bd18de8b5a3
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 fbd91ee..c569d1e 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -92,7 +92,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]