Merge pull request #802 from WS64/master

Safety measure to screensaver
This commit is contained in:
Huang Xin
2014-08-15 22:30:08 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ SEARCH_PATH = true
-- Light parameter for Kobo
KOBO_LIGHT_OFF_ON_SUSPEND = false
KOBO_LIGHT_ON_START = -1 -- -1 or 0-100. -1 leaves light as it is, other sets light on start/wake up
KOBO_SCREEN_SAVER = false -- image or directory with pictures or false
KOBO_SCREEN_SAVER = "-" -- image or directory with pictures or "-"
-- ####################################################################
-- following features are not supported right now

View File

@@ -92,7 +92,7 @@ function UIManager:init()
if (input_event == "Power" or input_event == "Suspend")
and not Device.screen_saver_mode then
if not UIManager.suspend_msg then
if KOBO_SCREEN_SAVER then
if type(KOBO_SCREEN_SAVER) == "string" then
local file = KOBO_SCREEN_SAVER
if lfs.attributes(file, "mode") == "directory" then
if string.sub(file,string.len(file)) ~= "/" then