mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
gui: list-skinned: fix scrollbar not disappearing
In some scenarios, when leaving a skinned list, the scroll bar remained visible. Change-Id: I0aa08cc95b4cf315834f83f57c09ed3e0f43de70
This commit is contained in:
parent
72af66bc8b
commit
0c464c3d49
1 changed files with 2 additions and 1 deletions
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
static struct listitem_viewport_cfg *listcfg[NB_SCREENS] = {NULL};
|
||||
static struct gui_synclist *current_list;
|
||||
static bool needs_scrollbar[NB_SCREENS];
|
||||
|
||||
static int current_row;
|
||||
static int current_column;
|
||||
|
|
@ -56,6 +57,7 @@ void skinlist_set_cfg(enum screen_type screen,
|
|||
if (listcfg[screen])
|
||||
screens[screen].scroll_stop_viewport(&listcfg[screen]->selected_item_vp.vp);
|
||||
listcfg[screen] = cfg;
|
||||
needs_scrollbar[screen] = false;
|
||||
current_list = NULL;
|
||||
current_column = -1;
|
||||
current_row = -1;
|
||||
|
|
@ -145,7 +147,6 @@ int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list)
|
|||
|
||||
static int current_item;
|
||||
static int current_nbitems;
|
||||
static bool needs_scrollbar[NB_SCREENS];
|
||||
bool skinlist_needs_scrollbar(enum screen_type screen)
|
||||
{
|
||||
return needs_scrollbar[screen];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue