[gnome-software] Filter invalid apps after a refine action



commit b13f0ee4d7184ffcf328122a15f911b05190775f
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Sep 12 14:35:38 2017 +0200

    Filter invalid apps after a refine action
    
    Among other possible issues, these changes fix a problem when
    overriding the popular apps (through GSettings) because it would
    end up showing invalid apps as those were not being filtered.

 lib/gs-plugin-loader.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 9f279e7..944d4bf 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3291,6 +3291,9 @@ gs_plugin_loader_process_thread_cb (GTask *task,
                gs_app_list_filter (list, gs_plugin_loader_filter_qt_for_gtk, NULL);
                gs_app_list_filter (list, gs_plugin_loader_get_app_is_compatible, plugin_loader);
                break;
+       case GS_PLUGIN_ACTION_REFINE:
+               gs_app_list_filter (list, gs_plugin_loader_app_is_valid, helper);
+               break;
        case GS_PLUGIN_ACTION_GET_POPULAR:
                gs_app_list_filter (list, gs_plugin_loader_app_is_valid, helper);
                gs_app_list_filter (list, gs_plugin_loader_filter_qt_for_gtk, NULL);


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