[gnome-software/wip/automatic-update-fixes: 91/92] 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: 91/92] update-monitor: Force reload of the Updates page before showing notification
- Date: Thu, 7 Jul 2022 08:19:24 +0000 (UTC)
commit 1aaa9617fc81651f17ed2f864bec35b958d67eed
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 a2dc9bb92..01e5869eb 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]