mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
simplelist: support ACTION_TREE_WPS
Also enables support for left/right scrolling Change-Id: Ic5888b1f17cca429febdab031e158db88a632a4e
This commit is contained in:
parent
a82396b0be
commit
e6b4ec81ff
1 changed files with 6 additions and 1 deletions
|
|
@ -932,7 +932,7 @@ bool simplelist_show_list(struct simplelist_info *info)
|
|||
|
||||
while(1)
|
||||
{
|
||||
list_do_action(CONTEXT_LIST, info->timeout, &lists, &action);
|
||||
list_do_action(CONTEXT_TREE, info->timeout, &lists, &action);
|
||||
|
||||
/* We must yield in this case or no other thread can run */
|
||||
if (info->timeout == TIMEOUT_NOBLOCK)
|
||||
|
|
@ -958,6 +958,11 @@ bool simplelist_show_list(struct simplelist_info *info)
|
|||
info->selection = -1;
|
||||
break;
|
||||
}
|
||||
else if (action == ACTION_TREE_WPS)
|
||||
{
|
||||
info->selection = -2;
|
||||
break;
|
||||
}
|
||||
else if (action == ACTION_STD_OK)
|
||||
{
|
||||
info->selection = gui_synclist_get_sel_pos(&lists);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue