[gnome-software] Do not show applications that are not available when searching by category



commit d7ef2b59d5f4f3579d3150a454b2370417a95ee7
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 13 10:04:52 2015 +0100

    Do not show applications that are not available when searching by category
    
    We have to actually check there is a version available when we run the refine
    plugins otherwise we just match AppStream and the application is not marked as
    invalid.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1237215

 src/gs-shell-category.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index 3244fe4..e328015 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -154,6 +154,7 @@ gs_shell_category_populate_filtered (GsShellCategory *shell, GsCategory *subcate
        gs_plugin_loader_get_category_apps_async (priv->plugin_loader,
                                                  subcategory,
                                                  GS_PLUGIN_REFINE_FLAGS_DEFAULT |
+                                                 GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION |
                                                  GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING,
                                                  priv->cancellable,
                                                  gs_shell_category_get_apps_cb,


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