From 00acdfa6ef624e1d13b461210ddd71dd589d192e Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Wed, 10 Dec 2003 00:11:25 +0000 Subject: Added viewer for currently playing playlist. Accessed from Menu->Playlist Options->View Current Playlist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4124 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'apps/wps.c') diff --git a/apps/wps.c b/apps/wps.c index 7044369ed5..a39f2ba30c 100644 --- a/apps/wps.c +++ b/apps/wps.c @@ -578,8 +578,6 @@ static bool menu(void) status_set_param(false); #endif - wps_display(id3); - wps_refresh(id3, 0, WPS_REFRESH_ALL); return false; } @@ -627,6 +625,7 @@ int wps_show(void) bool ignore_keyup = true; bool restore = false; bool exit = false; + bool update_track = false; id3 = NULL; current_track_path[0] = '\0'; @@ -902,6 +901,7 @@ int wps_show(void) if (menu()) return SYS_USB_CONNECTED; + update_track = true; restore = true; break; @@ -939,18 +939,24 @@ int wps_show(void) return SYS_USB_CONNECTED; case BUTTON_NONE: /* Timeout */ - if (update()) - { - /* set dir browser to current playing song */ - if (global_settings.browse_current && - current_track_path[0] != '\0') - set_current_file(current_track_path); - - return 0; - } + update_track = true; break; } + if (update_track) + { + if (update()) + { + /* set dir browser to current playing song */ + if (global_settings.browse_current && + current_track_path[0] != '\0') + set_current_file(current_track_path); + + return 0; + } + update_track = false; + } + if (exit) { #ifdef HAVE_LCD_CHARCELLS status_set_record(false); @@ -975,7 +981,6 @@ int wps_show(void) return 0; } - if ( button ) ata_spin(); -- cgit v1.2.3