summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-04-19 02:22:23 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-04-19 02:22:23 +0000
commitb79c9a61454fbf79a641cf353846ec7690af52f5 (patch)
tree3ae53d4926e694aec9bb241b8c08103b2a329f64 /apps/onplay.c
parent4b36096b930bef45ba14d09bf0e59ac9c87c3e81 (diff)
Allow insert shuffled option for directories when playlist is empty. Based on patch #3011 by Jonathan Gordon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9728 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 5dcbe6e13e..6ff99d7dd1 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -314,6 +314,14 @@ static bool playlist_options(void)
args[i].position = PLAYLIST_INSERT;
args[i].queue = false;
i++;
+
+ if (selected_file_attr & ATTR_DIRECTORY)
+ {
+ items[i].desc = ID2P(LANG_INSERT_SHUFFLED);
+ args[i].position = PLAYLIST_INSERT_SHUFFLED;
+ args[i].queue = false;
+ i++;
+ }
}
}