Update sPhone.lua
This commit is contained in:
parent
5ac2fa1151
commit
736f4af057
1 changed files with 34 additions and 30 deletions
|
@ -548,8 +548,9 @@ end
|
|||
while true do
|
||||
drawHome()
|
||||
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 x < 26 and x > 22 then
|
||||
footerMenu()
|
||||
|
@ -580,6 +581,9 @@ end
|
|||
shell.run("/.sPhone/apps/system/info")
|
||||
end
|
||||
end
|
||||
elseif e == "timer" and m == autoLockTimer then
|
||||
login()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue