Author: titmuss
Date: Sun Feb 10 03:55:58 2008
New Revision: 1884
URL: http://svn.slimdevices.com?rev=1884&root=Jive&view=rev
Log:
Bug: 6641, 6580
Description:
Don't enter sleep or suspend mode when a popup is visible on the screen. Doing
this
made the firmware upgrade take a very long time, as the CPU was reduced to
50MHz
during the upgrade.
The change needs reviewing (as part of bug 6641) post 7.0.
Modified:
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/strings.txt
Modified:
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua?rev=1884&root=Jive&r1=1883&r2=1884&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
Sun Feb 10 03:55:58 2008
@@ -512,12 +512,21 @@
self:setPowerState("dimmed")
elseif self.powerState == "locked" then
self:setPowerState("sleep")
- elseif self.powerState == "dimmed" then
- self:setPowerState("sleep")
- elseif self.powerState == "sleep" then
- self:setPowerState("suspend")
- elseif self.powerState == "suspend" then
- -- we can't go to sleep anymore
+ else
+ -- don't sleep or suspend with a popup visible
+ -- e.g. Bug 6641 during a firmware upgrade
+ -- XXXX this needs reviewing
+ local topWindow = Framework.windowStack[1]
+ if oo.instanceof(topWindow, Popup) then
+ self:setPowerState("dimmed")
+
+ elseif self.powerState == "dimmed" then
+ self:setPowerState("sleep")
+ elseif self.powerState == "sleep" then
+ self:setPowerState("suspend")
+ elseif self.powerState == "suspend" then
+ -- we can't go to sleep anymore
+ end
end
end
Modified:
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/strings.txt
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/strings.txt?rev=1884&root=Jive&r1=1883&r2=1884&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/strings.txt
(original)
+++
branches/7.0/jive/src/pkg/jive_squeezeboxjive/share/applets/SqueezeboxJive/strings.txt
Sun Feb 10 03:55:58 2008
@@ -213,9 +213,9 @@
NL Annuleer of bevestig het uitzetten van je controller
PLEASE_WAIT
- DE Verbindung
- EN Please wait
- ES Conectando
- FR Connexion
- IT Connessione...
- NL Bezig met verbinden
+ DE \nVerbindung
+ EN \nPlease wait
+ ES \nConectando
+ FR \nConnexion
+ IT \nConnessione...
+ NL \nBezig met verbinden
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins