Author: bklaas
Date: Mon Apr 25 13:36:36 2011
New Revision: 9431
URL: http://svn.slimdevices.com/jive?rev=9431&view=rev
Log:
Fixed Bug: 17172
Description: set self.myAppsNode to false when previous server's player menus
are unloaded
this unblocks the creation of a My Apps item from <7.6 servers (which current
prod mysb.com is right now)
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/SlimMenus/SlimMenusApplet.lua
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/SlimMenus/SlimMenusApplet.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/applets/SlimMenus/SlimMenusApplet.lua?rev=9431&r1=9430&r2=9431&view=diff
==============================================================================
---
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/SlimMenus/SlimMenusApplet.lua
(original)
+++
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/SlimMenus/SlimMenusApplet.lua
Mon Apr 25 13:36:36 2011
@@ -443,7 +443,11 @@
function _addMyAppsNode(self)
- jiveMain:addNode( { id = 'myApps', iconStyle = 'hm_myApps', node =
'home', text = self:string('MENUS_MY_APPS'), weight = 30 } )
+ local version = _player and _player:getSlimServer() and
_player:getSlimServer():getVersion()
+ local myApps = { id = 'myApps', iconStyle = 'hm_myApps', node = 'home',
text = self:string('MENUS_MY_APPS'), weight = 30 }
+ jiveMain:addNode( myApps )
+ _playerMenus['myApps'] = myApps
+
-- remove the old style My Apps item, if it exists
jiveMain:removeItemById('opmlmyapps')
self.myAppsNode = true
@@ -1164,6 +1168,9 @@
log:debug("player and server didn't change ,
not changing menus: ", player)
return
else
+ -- Bug 17172
+ self.myAppsNode = false
+
-- server changed, ergo playerMenus may also be
different. Remove the existing ones
for id, v in pairs(_playerMenus) do
jiveMain:removeItem(v)
@@ -1380,6 +1387,10 @@
-- remove player menus
jiveMain:setTitle(nil)
+
+ -- Bug 17172
+ self.myAppsNode = false
+
for id, v in pairs(_playerMenus) do
jiveMain:removeItem(v)
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins