summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-08-16 13:10:13 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-01-14 12:14:28 -0500
commit7f265ee8dd062a015e214b16f9c41fc27e867f22 (patch)
tree87ba5da95ef7870c922fd7206640c976ad72794a /apps/tree.c
parentcc79f1b543535e8d7e5b9875af9043c16267e429 (diff)
downloadrockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.tar.gz
rockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.zip
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 6 insertions, 1 deletions
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)
811 tagtree_get_filename(&tc, buf, sizeof(buf)); 811 tagtree_get_filename(&tc, buf, sizeof(buf));
812 } 812 }
813 else 813 else
814 {
814 attr = ATTR_DIRECTORY; 815 attr = ATTR_DIRECTORY;
816 tagtree_get_entry_name(&tc, tc.selected_item,
817 buf, sizeof(buf));
818 fix_path_part(buf, 0, sizeof(buf));
819 }
815 } 820 }
816 else 821 else
817#endif 822#endif
@@ -956,7 +961,7 @@ int create_playlist(void)
956#endif 961#endif
957 962
958 trigger_cpu_boost(); 963 trigger_cpu_boost();
959 ret = catalog_add_to_a_playlist(tc.currdir, ATTR_DIRECTORY, true, NULL); 964 ret = catalog_add_to_a_playlist(tc.currdir, ATTR_DIRECTORY, true, NULL, NULL);
960 cancel_cpu_boost(); 965 cancel_cpu_boost();
961 966
962 return (ret) ? 1 : 0; 967 return (ret) ? 1 : 0;