Author: adrian
Date: Wed Apr 16 10:56:40 2008
New Revision: 2246

URL: http://svn.slimdevices.com?rev=2246&root=Jive&view=rev
Log:
Bug: 7837
Description: only show Applet Installer when connected to SC and have
a player as this allows the server to be found

Modified:
    
7.0/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerMeta.lua

Modified: 
7.0/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerMeta.lua
URL: 
http://svn.slimdevices.com/7.0/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerMeta.lua?rev=2246&root=Jive&r1=2245&r2=2246&view=diff
==============================================================================
--- 
7.0/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerMeta.lua
 (original)
+++ 
7.0/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerMeta.lua
 Wed Apr 16 10:56:40 2008
@@ -23,7 +23,7 @@
 local jul           = require("jive.utils.log")
 
 local appletManager = appletManager
-
+local jnt           = jnt
 
 module(...)
 oo.class(_M, AppletMeta)
@@ -38,6 +38,14 @@
 end
 
 function registerApplet(self)
-       jiveMain:addItem(self:menuItem('appletSetupAppletInstaller', 
'advancedSettings', "APPLET_INSTALLER", function(applet, ...) applet:menu(...) 
end))
+       jnt:subscribe(self)
+       self.menu = self:menuItem('appletSetupAppletInstaller', 
'advancedSettings', self:string("APPLET_INSTALLER"), function(applet, ...) 
applet:menu(...) end)
 end
 
+function notify_playerCurrent(self, player)
+       if player == nil or player.slimServer:isSqueezeNetwork() then
+               jiveMain:removeItem(self.menu)
+       else
+               jiveMain:addItem(self.menu)
+       end
+end

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

Reply via email to