summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-14 07:48:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-14 07:48:48 +0000
commitc0b7f4d97ca993c8be2edd7f7de4c2c10cad9fc2 (patch)
treed6af02c8e88ac557859124fa8bccf168c658dabe /apps
parent881d22633972f32b7f422e2f290daf5954a63bc8 (diff)
downloadrockbox-c0b7f4d97ca993c8be2edd7f7de4c2c10cad9fc2.tar.gz
rockbox-c0b7f4d97ca993c8be2edd7f7de4c2c10cad9fc2.zip
the shuffle says something if we don't have a playlist loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/main_menu.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 0b4da978d8..7ecd6a48c3 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -168,14 +168,19 @@ void scroll_speed(void)
void shuffle(void)
{
lcd_clear_display();
- lcd_puts(0,0,"Shuffling...");
- lcd_update();
+ if(playlist.amount) {
+ lcd_puts(0,0,"Shuffling...");
+ lcd_update();
#ifdef SIMULATOR
- randomise_playlist( &playlist, time() );
+ randomise_playlist( &playlist, time() );
#else
- randomise_playlist( &playlist, current_tick );
+ randomise_playlist( &playlist, current_tick );
#endif
- lcd_puts(0,1,"Done.");
+ lcd_puts(0,1,"Done.");
+ }
+ else {
+ lcd_puts(0,0,"No playlist");
+ }
lcd_update();
sleep(HZ);
}