[gnome-software] Reload the all the shells when the AppStream metadata changes



commit 8c8e60a89e7b178ba973c6507de0959147c4361d
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 10 17:22:59 2014 +0100

    Reload the all the shells when the AppStream metadata changes

 src/plugins/gs-plugin-appstream.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 911ace3..cb00143 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -78,6 +78,10 @@ gs_plugin_appstream_store_changed_cb (AsStore *store, GsPlugin *plugin)
 {
        g_debug ("AppStream metadata changed, reloading cache");
        plugin->priv->done_init = FALSE;
+
+       /* this is not strictly true, but it causes all the UI to be reloaded
+        * which is what we really want */
+       gs_plugin_updates_changed (plugin);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]