From 7f265ee8dd062a015e214b16f9c41fc27e867f22 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 16 Aug 2022 13:10:13 +0200 Subject: Database: Add ability to insert multiple files into playlists You could only add single files to playlists from the database browser before. This enables adding any database selection to a new or existing playlist. Change-Id: I811c7167641c589944bb2afc18dcc1d299a7b979 --- apps/tree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index d2a7111e5f..5dd88c8e9d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -811,7 +811,12 @@ static int dirbrowse(void) tagtree_get_filename(&tc, buf, sizeof(buf)); } else + { attr = ATTR_DIRECTORY; + tagtree_get_entry_name(&tc, tc.selected_item, + buf, sizeof(buf)); + fix_path_part(buf, 0, sizeof(buf)); + } } else #endif @@ -956,7 +961,7 @@ int create_playlist(void) #endif trigger_cpu_boost(); - ret = catalog_add_to_a_playlist(tc.currdir, ATTR_DIRECTORY, true, NULL); + ret = catalog_add_to_a_playlist(tc.currdir, ATTR_DIRECTORY, true, NULL, NULL); cancel_cpu_boost(); return (ret) ? 1 : 0; -- cgit v1.2.3