allow softlock in additional screens

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 5 Jul 2026 07:00:33 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 78ec149555f5d2972d4cdebc81e3088fdbe03a63
Author: Christian Soffke <[email protected]>
Date:   Wed Jun 3 23:11:05 2026 +0200

    allow softlock in additional screens
    
    not sure if there's a reason these weren't included
    in g#3229
    
    - simple lists
    - playlist viewer
    - browse_id3
    - option select
    
    Change-Id: I0e15aaeb563e68ea21bf5df667ce134d01a95195

diff --git a/apps/gui/list.c b/apps/gui/list.c
index 3ee56e8008..12f17cefef 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_TREE, info->timeout, &lists, &action);
+        list_do_action(CONTEXT_TREE|ALLOW_SOFTLOCK, info->timeout, &lists, &action);
 
         /* We must yield in this case or no other thread can run */
         if (info->timeout == TIMEOUT_NOBLOCK)
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index d99c62ea94..12dff945ad 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -532,7 +532,7 @@ bool option_screen(const struct settings_list *setting,
         if (!allow_wrap)
             lists.wraparound = false;
 
-        if (list_do_action(CONTEXT_LIST, HZ, /* HZ so the status bar redraws */
+        if (list_do_action(CONTEXT_LIST|ALLOW_SOFTLOCK, HZ, /* HZ so the status bar redraws */
                            &lists, &action))
         {
             /* setting changed */
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 2c0ac22541..639007ec10 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -1017,7 +1017,7 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename,
         }
 
         /* Timeout so we can determine if play status has changed */
-        bool res = list_do_action(CONTEXT_TREE, HZ/2, &playlist_lists, &button);
+        bool res = list_do_action(CONTEXT_TREE|ALLOW_SOFTLOCK, HZ/2, &playlist_lists, &button);
         /* during moving, another redraw is going to be needed,
          * since viewer.selected_track is updated too late (after the first draw)
          * drawing the moving item needs it */
diff --git a/apps/screens.c b/apps/screens.c
index 65501ea549..59a7c25806 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -821,7 +821,7 @@ refresh_info:
     gui_synclist_draw(&id3_lists);
     gui_synclist_speak_item(&id3_lists);
     while (true) {
-        if(!list_do_action(CONTEXT_LIST,HZ/2, &id3_lists, &key)
+        if(!list_do_action(CONTEXT_LIST|ALLOW_SOFTLOCK,HZ/2, &id3_lists, &key)
            && key!=ACTION_NONE && key!=ACTION_UNKNOWN)
         {
             if (key == ACTION_STD_OK)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs