mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
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
This commit is contained in:
parent
fa67d29909
commit
f0d3d76b26
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue