Author: bklaas
Date: Thu Jan 31 06:48:11 2008
New Revision: 1722
URL: http://svn.slimdevices.com?rev=1722&root=Jive&view=rev
Log:
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:
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua?rev=1722&root=Jive&r1=1721&r2=1722&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Thu Jan 31 06:48:11 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