gui: list: clear skinlist cfg when selected_size isn't 1

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Thu, 28 May 2026 19:55:34 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit f0d3d76b261beb483435a257a4080f6ed6c4dee8
Author: Christian Soffke <[email protected]>
Date:   Fri May 29 01:23:19 2026 +0200

    gui: list: clear skinlist cfg when selected_size isn't 1
    
    This disables custom scroll bars when initializing lists
    that are currently always un-skinned, in scenarios where
    there is neither a new activity to be pushed, nor is the
    theme toggled.
    
    Change-Id: I1bb05fc9be956c71e1adb70e764094082d9bb904

diff --git a/apps/gui/list.c b/apps/gui/list.c
index 28d4bacc7e..48fc5661fb 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -183,6 +183,9 @@ void gui_synclist_init(struct gui_synclist * gui_list,
     gui_list->data = data;
     gui_list->scroll_all = scroll_all;
     gui_list->selected_size = selected_size;
+    if (selected_size != 1)
+        FOR_NB_SCREENS(i)
+            skinlist_set_cfg(i, NULL);
     gui_list->title = NULL;
     gui_list->title_icon = Icon_NOICON;
 
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs