summaryrefslogtreecommitdiff
path: root/apps/plugins/pictureflow/pictureflow.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-05-26 03:24:45 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-05-27 19:17:52 -0400
commit3ef49d9c5e92579dcb7e51e081b27fddf8c7b9b4 (patch)
tree055a1138f0536e1ce59715e8cda1e38faca359b3 /apps/plugins/pictureflow/pictureflow.c
parent028eafaeef87b8855a79e118e4239d6220b2b6c9 (diff)
downloadrockbox-3ef49d9c5e92579dcb7e51e081b27fddf8c7b9b4.tar.gz
rockbox-3ef49d9c5e92579dcb7e51e081b27fddf8c7b9b4.zip
PictureFlow: Make Shuffle options available
The "Playing Next..." menu couldn't display any options for shuffling tracks of an album before Change-Id: I54f4497394fb29877bf8bce0ef95a27c82eb2279
Diffstat (limited to 'apps/plugins/pictureflow/pictureflow.c')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 75504cf17e..b21faf1dd8 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -4188,7 +4188,7 @@ static int context_menu(void)
4188{ 4188{
4189 char album_name[MAX_PATH]; 4189 char album_name[MAX_PATH];
4190 char *file_name = get_track_filename(show_tracks_while_browsing ? 0 : pf_tracks.sel); 4190 char *file_name = get_track_filename(show_tracks_while_browsing ? 0 : pf_tracks.sel);
4191 int attr; 4191 int attr = FILE_ATTR_AUDIO;
4192 4192
4193 enum { 4193 enum {
4194 PF_CURRENT_PLAYLIST = 0, 4194 PF_CURRENT_PLAYLIST = 0,
@@ -4205,13 +4205,15 @@ static int context_menu(void)
4205 NULL, NULL, false)) { 4205 NULL, NULL, false)) {
4206 4206
4207 case PF_CURRENT_PLAYLIST: 4207 case PF_CURRENT_PLAYLIST:
4208 rb->onplay_show_playlist_menu(file_name, 4208 if (insert_whole_album && pf_tracks.count > 1)
4209 &pf_current_playlist_insert); 4209 {
4210 attr = ATTR_DIRECTORY;
4211 file_name = NULL;
4212 }
4213 rb->onplay_show_playlist_menu(file_name, attr, &pf_current_playlist_insert);
4210 return 0; 4214 return 0;
4211 case PF_CATALOG: 4215 case PF_CATALOG:
4212 if (!insert_whole_album) 4216 if (insert_whole_album)
4213 attr = FILE_ATTR_AUDIO;
4214 else
4215 { 4217 {
4216 /* add a leading slash so that catalog_add_to_a_playlist 4218 /* add a leading slash so that catalog_add_to_a_playlist
4217 later prefills the name when creating a new playlist */ 4219 later prefills the name when creating a new playlist */