[gnome-software/wip/ubuntu-3-24: 13/21] 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: 13/21] gs-update-monitor: Hide "Software Updates Available" notification under Unity
- Date: Thu, 15 Jun 2017 04:52:12 +0000 (UTC)
commit c61672facdd8d8e5ef407fdd0f42f7650e5d734d
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]