mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
PictureFlow: Make Shuffle options available
The "Playing Next..." menu couldn't display any options for shuffling tracks of an album before Change-Id: I54f4497394fb29877bf8bce0ef95a27c82eb2279
This commit is contained in:
parent
028eafaeef
commit
3ef49d9c5e
6 changed files with 18 additions and 16 deletions
|
|
@ -4188,7 +4188,7 @@ static int context_menu(void)
|
|||
{
|
||||
char album_name[MAX_PATH];
|
||||
char *file_name = get_track_filename(show_tracks_while_browsing ? 0 : pf_tracks.sel);
|
||||
int attr;
|
||||
int attr = FILE_ATTR_AUDIO;
|
||||
|
||||
enum {
|
||||
PF_CURRENT_PLAYLIST = 0,
|
||||
|
|
@ -4205,13 +4205,15 @@ static int context_menu(void)
|
|||
NULL, NULL, false)) {
|
||||
|
||||
case PF_CURRENT_PLAYLIST:
|
||||
rb->onplay_show_playlist_menu(file_name,
|
||||
&pf_current_playlist_insert);
|
||||
if (insert_whole_album && pf_tracks.count > 1)
|
||||
{
|
||||
attr = ATTR_DIRECTORY;
|
||||
file_name = NULL;
|
||||
}
|
||||
rb->onplay_show_playlist_menu(file_name, attr, &pf_current_playlist_insert);
|
||||
return 0;
|
||||
case PF_CATALOG:
|
||||
if (!insert_whole_album)
|
||||
attr = FILE_ATTR_AUDIO;
|
||||
else
|
||||
if (insert_whole_album)
|
||||
{
|
||||
/* add a leading slash so that catalog_add_to_a_playlist
|
||||
later prefills the name when creating a new playlist */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue