Author: richard
Date: Tue Feb 24 04:29:57 2009
New Revision: 4427
URL: http://svn.slimdevices.com/jive?rev=4427&view=rev
Log:
r4...@harrypotter (orig r4426): richard | 2009-02-24 12:28:18 +0000
Bug: N/A
Descripiton:
Fix screenshots, they were no longer being saved to the SD card.
Modified:
7.4/branches/pango/ (props changed)
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
Propchange: 7.4/branches/pango/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Tue Feb 24 04:29:57 2009
@@ -4,7 +4,7 @@
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.2/trunk:2921
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.3/private-branches/jive-refresh:3653
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.3/trunk:4138
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.4/trunk:4311
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.4/trunk:4426
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:2013
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Modified:
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
URL:
http://svn.slimdevices.com/jive/7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua?rev=4427&r1=4426&r2=4427&view=diff
==============================================================================
---
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
(original)
+++
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
Tue Feb 24 04:29:57 2009
@@ -40,14 +40,16 @@
local function _takeScreenshotAction(self)
Framework:playSound("CLICK")
- -- write to /media/*/log/squeezeplayXXXX.bmp or userpath
+ -- write to /media/*/squeezeplayXXXX.bmp or userpath
local path = System.getUserDir()
if lfs.attributes("/media", "mode") ~= nil then
for dir in lfs.dir("/media") do
- local tmp = "/media/" .. dir
- if lfs.attributes(tmp, "mode") == "directory" then
- path = tmp
- break
+ if not string.match(dir, "^%.") then
+ local tmp = "/media/" .. dir
+ if lfs.attributes(tmp, "mode") == "directory"
then
+ path = tmp
+ break
+ end
end
end
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins