[gnome-software/wip/automatic-update-fixes] update-monitor: Force reload of the Updates page before showing notification
- From: Milan Crha <mcrha src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-software/wip/automatic-update-fixes] update-monitor: Force reload of the Updates page before showing notification
 
- Date: Wed, 15 Jun 2022 16:21:16 +0000 (UTC)
 
commit 2ed0e3ffe312b082ce76dd37512d03559a378e87
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 15 18:17:18 2022 +0200
    update-monitor: Force reload of the Updates page before showing notification
    
    Thus it reflects what the update-monitor notifies about.
 src/gs-update-monitor.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index b5b3972d2..5e6241a85 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -288,6 +288,10 @@ notify_about_pending_updates (GsUpdateMonitor *monitor,
                return;
        }
 
+       /* To force reload of the Updates page, thus it reflects what
+          the update-monitor notifies about */
+       gs_plugin_loader_emit_updates_changed (monitor->plugin_loader);
+
        monitor->last_notification_time_usec = g_get_real_time ();
 
        g_debug ("Notify about update: '%s'", title);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]