aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/files.lua b/files.lua
index 981007c..df37c2d 100644
--- a/files.lua
+++ b/files.lua
@@ -79,6 +79,12 @@ function updateFiles()
files = f.videos
end
return
+ elseif files == f.pictures then
+ openFileWindow(7)
+ elseif files == f.videos then
+ openFileWindow(8)
+ elseif files == f.music then
+ openFileWindow(9)
end
end
end
@@ -93,3 +99,11 @@ function updateFiles()
win[3].update = true
end
end
+function openFileWindow(id)
+ if win[id].ex == true then
+ win[id].ex = false
+ win[id].s = 0.2
+ win[id].oldlayer = win[id].layer
+ layer.sentToFront = id
+ end
+end