Fix: Root dir bookmarks displayed for dynamic playlist

When the 'List bookmarks' button or hotkey was
pressed, while a dynamic playlist was playing,
bookmarks from the root dir were displayed, if
any existed.

Change-Id: If104ad4b717fd188174069457deb27d21399b9bb
This commit is contained in:
Christian Soffke 2025-03-11 04:49:40 +01:00
parent 42a9582cc1
commit c31234bc32

View file

@ -1187,6 +1187,15 @@ int bookmark_load_menu(void)
char* bookmark;
int ret = BOOKMARK_FAIL;
/* To prevent root dir ("/") bookmarks from being displayed
when 'List Bookmarks' hotkey or button is pressed, check:
*/
if (playlist_dynamic_only())
{
splash(HZ, ID2P(LANG_BOOKMARK_LOAD_EMPTY));
return ret;
}
push_current_activity(ACTIVITY_BOOKMARKSLIST);
char* name = playlist_get_name(NULL, global_temp_buffer,