Update sPhone.lua

This commit is contained in:
Ale32bit 2015-10-10 23:58:23 +02:00
parent 5ac2fa1151
commit 736f4af057

View file

@ -548,8 +548,9 @@ end
while true do while true do
drawHome() drawHome()
term.setCursorBlink(false) term.setCursorBlink(false)
local _,m,x,y = os.pullEvent("mouse_click") local autoLockTimer = os.startTimer(120)
local e,m,x,y = os.pullEvent()
if e == "mouse_click" then
if y == 1 then if y == 1 then
if x < 26 and x > 22 then if x < 26 and x > 22 then
footerMenu() footerMenu()
@ -580,6 +581,9 @@ end
shell.run("/.sPhone/apps/system/info") shell.run("/.sPhone/apps/system/info")
end end
end end
elseif e == "timer" and m == autoLockTimer then
login()
end
end end
end end