shortcuts: go to WPS for ACTION_TREE_WPS

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

    shortcuts: go to WPS for ACTION_TREE_WPS
    
    Change-Id: Ieab19f90d9cf13b19ce7fe108f3ecb734af1fde0

diff --git a/apps/shortcuts.c b/apps/shortcuts.c
index ab32cd14f7..257b2be9c3 100644
--- a/apps/shortcuts.c
+++ b/apps/shortcuts.c
@@ -744,9 +744,13 @@ int do_shortcut_menu(void *ignored)
 
         if (simplelist_show_list(&list))
             break; /* returning from USB screen */
-
         if (list.selection == -1)
             break; /* canceled */
+        if (list.selection == -2)
+        {
+            done = GO_TO_WPS;
+            break;
+        }
 
         sc = get_shortcut(list.selection, NULL);
         if (!sc)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs