[gnome-software] Only show the highest priority version of an app in the featured banner



commit 6120a85f2e38cee7fe62915dff54a438602f7760
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 11 12:17:02 2018 +0100

    Only show the highest priority version of an app in the featured banner

 src/gs-overview-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 9419b9ee..40e3ddcb 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -495,6 +495,7 @@ gs_overview_page_get_featured_cb (GObject *source_object,
        if (g_getenv ("GNOME_SOFTWARE_FEATURED") == NULL) {
                /* Don't show apps from the category that's currently featured as the category of the day */
                gs_app_list_filter (list, filter_category, priv->category_of_day);
+               gs_app_list_filter_duplicates (list, GS_APP_LIST_FILTER_FLAG_KEY_ID);
                gs_app_list_randomize (list);
        }
        for (guint i = 0; i < gs_app_list_length (list); i++) {


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