Author: mherger
Date: Wed Feb 10 22:34:05 2010
New Revision: 8481
URL: http://svn.slimdevices.com/jive?rev=8481&view=rev
Log:
Bug: n/a
Description: allow forcing a wallpaper refresh
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua?rev=8481&r1=8480&r2=8481&view=diff
==============================================================================
---
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
(original)
+++
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
Wed Feb 10 22:34:05 2010
@@ -359,7 +359,7 @@
end
-function showBackground(self, wallpaper, playerId)
+function showBackground(self, wallpaper, playerId, force)
-- default is different based on skin
local skinName = jiveMain:getSelectedSkin()
@@ -371,7 +371,9 @@
wallpaper = self:getSettings()[skinName]
end
end
- if self.currentWallpaper == wallpaper then
+
+ -- always refresh if forced
+ if self.currentWallpaper == wallpaper and not force then
-- no change
return
end
@@ -400,7 +402,7 @@
end
-function setBackground(self, wallpaper, playerId)
+function setBackground(self, wallpaper, playerId, force)
if not playerId then
-- default is different based on skin
playerId = jiveMain:getSelectedSkin()
@@ -430,7 +432,7 @@
self:getSettings()[playerId] = wallpaper
end
- self:showBackground(wallpaper, playerId)
+ self:showBackground(wallpaper, playerId, force)
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins