[gnome-software/995-search-results-in-gnome-shell-overview-do-not-include-fedora-third-party-repositories] gs-shell-search-provider: Return all found apps, not only available apps



commit 16fbe737c804ddf2c2b7bcf1aada95502e0ea092
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 23 10:59:58 2021 +0200

    gs-shell-search-provider: Return all found apps, not only available apps
    
    This can show in the GNOME Shell overview search also applications from
    disabled repositories, the same as the in-software search shows them.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/995

 src/gs-shell-search-provider.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/gs-shell-search-provider.c b/src/gs-shell-search-provider.c
index 2493a870c..e83bba0f1 100644
--- a/src/gs-shell-search-provider.c
+++ b/src/gs-shell-search-provider.c
@@ -87,8 +87,6 @@ search_done_cb (GObject *source,
        g_variant_builder_init (&builder, G_VARIANT_TYPE ("as"));
        for (i = 0; i < gs_app_list_length (list); i++) {
                GsApp *app = gs_app_list_index (list, i);
-               if (gs_app_get_state (app) != GS_APP_STATE_AVAILABLE)
-                       continue;
                g_variant_builder_add (&builder, "s", gs_app_get_unique_id (app));
 
                /* cache this in case we need the app in GetResultMetas */


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