root_menu: Start Screen: don't try to resume finished playlist
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sat, 6 Jun 2026 11:34:19 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 86decaab9e0caae4d3d4e477cc553f5c57e02dbe Author: Christian Soffke <[email protected]> Date: Fri Jun 5 14:24:10 2026 +0200 root_menu: Start Screen: don't try to resume finished playlist Go to root menu when Start Screen has been set to "Resume Playback" but playlist is finished https://forums.rockbox.org/index.php?topic=55770 Change-Id: I6939fa313dd5fd6485628e22a2d860763492d5cf diff --git a/apps/root_menu.c b/apps/root_menu.c index 7d7bd7860a..5a33146998 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -854,7 +854,8 @@ static int root_menu_setup_screens(void) else new_screen = global_settings.start_in_screen - 2; - if (new_screen >= NUM_ITEMS) + if (new_screen >= NUM_ITEMS || + (new_screen == GO_TO_WPS && global_status.resume_index == -1)) new_screen = GO_TO_ROOT; else if (new_screen == GO_TO_PLUGIN) { -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs