simplelist: support ACTION_TREE_WPS

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 5 Jul 2026 06:58:22 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit e6b4ec81ff69950e7bb53c985f5e92fbf7470c0a
Author: Christian Soffke <[email protected]>
Date:   Wed Jun 3 23:03:53 2026 +0200

    simplelist: support ACTION_TREE_WPS
    
    Also enables support for left/right scrolling
    
    Change-Id: Ic5888b1f17cca429febdab031e158db88a632a4e

diff --git a/apps/gui/list.c b/apps/gui/list.c
index ffc8d7d023..3ee56e8008 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -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);
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs