[gnome-software] Do not show the distro-upgrade notification if the window is open



commit 2b1b53779cbec956cdc26a6a4118f831c1eb8eb4
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]