[Slim-Checkins] r9086 - /trunk/server/Slim/Buttons/Playlist.pm

adrian at svn.slimdevices.com adrian at svn.slimdevices.com
Mon Aug 21 15:29:07 PDT 2006


Author: adrian
Date: Mon Aug 21 15:29:06 2006
New Revision: 9086

URL: http://svn.slimdevices.com?rev=9086&view=rev
Log:
Bug: N/A
Desciption: Update listLen in playlist mode only, but do it even if
$playlistindex is not set so setMode will always update knob

Modified:
    trunk/server/Slim/Buttons/Playlist.pm

Modified: trunk/server/Slim/Buttons/Playlist.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Buttons/Playlist.pm?rev=9086&r1=9085&r2=9086&view=diff
==============================================================================
--- trunk/server/Slim/Buttons/Playlist.pm (original)
+++ trunk/server/Slim/Buttons/Playlist.pm Mon Aug 21 15:29:06 2006
@@ -394,9 +394,9 @@
 	
 	# update list length for the knob.  ### HACK ATTACK ###
 	#
-	# Only do so when we're updating the listIndex though.
+	# Only do when we are in mode playlist
 	# See Bug: 3561
-	if (defined $playlistindex) {
+	if (Slim::Buttons::Common::mode($client) eq 'playlist') {
 
 		$client->param('listLen', Slim::Player::Playlist::count($client));
 	}



More information about the checkins mailing list