simplelist: support ACTION_TREE_WPS

Also enables support for left/right scrolling

Change-Id: Ic5888b1f17cca429febdab031e158db88a632a4e
This commit is contained in:
Christian Soffke 2026-06-03 23:03:53 +02:00
parent a82396b0be
commit e6b4ec81ff

View file

@ -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);