[gnome-software: 4/7] gs-app-list: Drop gs_app_list_randomize() call for featured/curated apps




commit f28557e4ebcefa3d5be4208858dcd5eb88ddcf89
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue May 24 16:14:25 2022 +0100

    gs-app-list: Drop gs_app_list_randomize() call for featured/curated apps
    
    As no `sort-func` is provided to the query for featured apps or the
    query for curated apps, the returned app lists are already randomised.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-overview-page.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 8bd7d2b04..3c9eef4c4 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -150,7 +150,6 @@ gs_overview_page_get_curated_cb (GObject *source_object,
                goto out;
        }
 
-       gs_app_list_randomize (list);
 
        gs_widget_remove_all (self->box_curated, (GsRemoveFunc) gtk_flow_box_remove);
 
@@ -291,8 +290,6 @@ gs_overview_page_get_featured_cb (GObject *source_object,
                goto out;
        }
 
-       gs_app_list_randomize (list);
-
        /* Filter out apps which don’t have a suitable hi-res icon. */
        gs_app_list_filter (list, filter_hi_res_icon, self);
 


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