Author: adrian
Date: Tue Jul 22 09:02:54 2008
New Revision: 2723

URL: http://svn.slimdevices.com?rev=2723&root=Jive&view=rev
Log:
Bug: 8699
Description: add error messages when no info browser feeds are found

Modified:
    
7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/InfoBrowserApplet.lua
    7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/strings.txt

Modified: 
7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/InfoBrowserApplet.lua
URL: 
http://svn.slimdevices.com/7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/InfoBrowserApplet.lua?rev=2723&root=Jive&r1=2722&r2=2723&view=diff
==============================================================================
--- 
7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/InfoBrowserApplet.lua
 (original)
+++ 
7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/InfoBrowserApplet.lua
 Tue Jul 22 09:02:54 2008
@@ -65,6 +65,10 @@
        -- send first request if we have a server
        if self.server then
                self:request(nil, 0, window, menu, list)
+               self.timer = Timer(5000, function()
+                                                                        
window:addWidget(Textarea("help", self:string('INFOBROWSER_NORESPONSE')))
+                                                                end)
+               self.timer:start()
        end
 end
 
@@ -91,10 +95,22 @@
 
        local id
 
+       -- cancel the warning for no response
+       if self.timer then
+               self.timer:stop()
+               self.timer = nil
+       end
+
        -- end previous menu animation and show new window
        if locked then
                prevmenu:unlock()
                window:show()
+       end
+
+       -- display help if no feeds found
+       if result.loop_loop == nil then
+               window:addWidget(Textarea("help", self:string( 
'INFOBROWSER_NOINFO_' .. (self.server:isSqueezeNetwork() and 'SN' or 'SC') ) ) )
+               return
        end
 
        -- itterate though response - handle leaves as well as branches

Modified: 
7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/strings.txt
URL: 
http://svn.slimdevices.com/7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/strings.txt?rev=2723&root=Jive&r1=2722&r2=2723&view=diff
==============================================================================
--- 7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/strings.txt 
(original)
+++ 7.2/trunk/squeezeplay/src/squeezeplay/share/applets/InfoBrowser/strings.txt 
Tue Jul 22 09:02:54 2008
@@ -9,3 +9,11 @@
        IT      Browser informazioni
        NL      Informatiebrowser
 
+INFOBROWSER_NORESPONSE
+       EN      No information feeds found.  Please check the Information 
Browser plugin is enabled on your server.
+
+INFOBROWSER_NOINFO_SN
+       EN      No information feeds found.  Please login to your 
SqueezeNetwork account and add information feeds.
+
+INFOBROWSER_NOINFO_SC
+       EN      No information feeds found.  Please use the SqueezeCenter web 
interface to add information feeds under Extras/Info Browser.

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

Reply via email to