[gnome-software/gnome-3-20] Do not show the distro-upgrade notification if the window is open
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] Do not show the distro-upgrade notification if the window is open
- Date: Wed, 20 Apr 2016 13:51:47 +0000 (UTC)
commit 88e665fe9992c9d62e0d0b44b51fd73c25c26581
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 20 14:34:51 2016 +0100
Do not show the distro-upgrade notification if the window is open
src/gs-update-monitor.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 032a96f..cceaedd 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -222,6 +222,10 @@ get_upgrades_finished_cb (GObject *object,
return;
}
+ /* do not show if gnome-software is already open */
+ if (gs_application_has_active_window (GS_APPLICATION (monitor->application)))
+ return;
+
/* just get the first result : FIXME, do we sort these by date? */
app = GS_APP (apps->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]