[gnome-software/gnome-40: 1/2] gs-shell-search-provider: Return all found apps, not only available apps




commit b5fdbd20dcd2508a5bad97fb1461472a78addc50
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 27bbb45f7..78db7cbb8 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]