[gnome-software/gnome-3-24] Load the application keywords after the origin keywords have been added
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-24] Load the application keywords after the origin keywords have been added
- Date: Mon, 8 May 2017 12:31:26 +0000 (UTC)
commit 7eae2aa7ec89db701aa31ee8cb0e7c912ffec184
Author: Richard Hughes <richard hughsie com>
Date: Mon May 8 13:15:18 2017 +0100
Load the application keywords after the origin keywords have been added
This ensures we can search for the repo name.
plugins/core/gs-plugin-appstream.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index b608584..a54e474 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -302,9 +302,6 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
G_CALLBACK (gs_plugin_appstream_store_changed_cb),
plugin);
- /* ensure the token cache */
- as_store_load_search_cache (priv->store);
-
/* add search terms for apps not in the main source */
origins = gs_plugin_appstream_get_origins_hash (items);
for (i = 0; i < items->len; i++) {
@@ -320,6 +317,9 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
}
}
+ /* ensure the token cache */
+ as_store_load_search_cache (priv->store);
+
/* rely on the store keeping itself updated */
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]