Author: bklaas
Date: Thu Feb 25 13:05:25 2010
New Revision: 8578

URL: http://svn.slimdevices.com/jive?rev=8578&view=rev
Log:
Bug: 13787
Description: send currentTrack flag when sending request for CM for currently 
playing track

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=8578&r1=8577&r2=8578&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
 Thu Feb 25 13:05:25 2010
@@ -3290,7 +3290,7 @@
 
 function showCurrentTrack()
        local currentIndex = _player:getPlaylistCurrentIndex()
-       showTrack(currentIndex)
+       showTrack(currentIndex, true)
 end
 
 function setPresetCurrentTrack(self, preset)
@@ -3313,7 +3313,7 @@
 end
 
 
-function showTrack(index)
+function showTrack(index, currentTrack)
        local serverIndex = index - 1
        local jsonAction = {
                cmd = { 'contextmenu' },
@@ -3328,6 +3328,9 @@
                        context = 'playlist',
                },
        }
+       if currentTrack then
+               jsonAction.params.currentTrack = 1
+       end
        -- determine style
        local newWindowSpec = {
                ['isContextMenu']    = true,

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to