mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user