From c31234bc32b15eef55653337793e67c24e4c8c8f Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 11 Mar 2025 04:49:40 +0100 Subject: [PATCH] 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 --- apps/bookmark.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/bookmark.c b/apps/bookmark.c index 6ff7e4e52c..6024aeb2aa 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -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,