[gnome-software] Don't show applications without AppData in the category view
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't show applications without AppData in the category view
- Date: Fri, 12 Jun 2015 10:02:02 +0000 (UTC)
commit 880c5bd71d62f13c5ff9ce6d2943eb4c3cc591c5
Author: Richard Hughes <richard hughsie com>
Date: Fri Jun 12 11:01:55 2015 +0100
Don't show applications without AppData in the category view
src/gs-plugin-loader.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 6ae6b83..f340f66 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -1988,6 +1988,13 @@ gs_plugin_loader_get_categories_thread_cb (GTask *task,
for (l = state->list; l != NULL; l = l->next)
gs_category_sort_subcategories (GS_CATEGORY (l->data));
+ /* only show apps with AppData */
+ if (g_settings_get_boolean (plugin_loader->priv->settings, "require-appdata")) {
+ gs_plugin_list_filter (&state->list,
+ gs_plugin_loader_get_app_has_appdata,
+ plugin_loader);
+ }
+
/* success */
if (state->list == NULL) {
g_task_return_new_error (task,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]