Author: titmuss
Date: Thu Jan 31 09:28:12 2008
New Revision: 1725
URL: http://svn.slimdevices.com?rev=1725&root=Jive&view=rev
Log:
[EMAIL PROTECTED] (orig r1722): bklaas | 2008-01-31 14:48:11 +0000
Bug: 6843
Description: Hide NowPlaying browse window when power is turned off.
This covers the farely rare case of someone turning off the player through
other means (different SBC, IR remote, web UI)
Previous to this checkin, if the user is on the playlist page, the window
changes to show 'Off', but pressing the back button
brings you back through a NowPlaying window that has no data. This fixes that.
Modified:
trunk/ (props changed)
trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Thu Jan 31 09:28:12 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1715
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1722
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Modified: trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua?rev=1725&root=Jive&r1=1724&r2=1725&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++ trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua Thu
Jan 31 09:28:12 2008
@@ -169,6 +169,18 @@
end
+function notify_playerPower(self, player, power)
+ if player ~= self.player then
+ return
+ end
+ -- hide this window if the player is turned off
+ if power == 0 then
+ if self['browse'].window then
+ self['browse'].window:hide()
+ end
+ end
+end
+
function notify_playerTrackChange(self, player, nowPlaying)
log:warn("PLAYER TRACK NOTIFICATION RECEIVED")
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins