mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
Allow local overrides of use_lastfile_as_screensaver
This commit is contained in:
parent
6b4f48f29f
commit
b959c4de1c
@ -92,7 +92,7 @@ function Screensaver:show(kind, default_msg)
|
|||||||
local InfoMessage = require("ui/widget/infomessage")
|
local InfoMessage = require("ui/widget/infomessage")
|
||||||
local screensaver_settings = G_reader_settings:readSetting(kind .. "_screensaver") or {}
|
local screensaver_settings = G_reader_settings:readSetting(kind .. "_screensaver") or {}
|
||||||
-- first check book cover image, on by default
|
-- first check book cover image, on by default
|
||||||
local screensaver_last_book =
|
local screensaver_last_book = screensaver_settings.use_last_file or
|
||||||
G_reader_settings:readSetting("use_lastfile_as_screensaver")
|
G_reader_settings:readSetting("use_lastfile_as_screensaver")
|
||||||
if screensaver_last_book == nil or screensaver_last_book then
|
if screensaver_last_book == nil or screensaver_last_book then
|
||||||
local lastfile = G_reader_settings:readSetting("lastfile")
|
local lastfile = G_reader_settings:readSetting("lastfile")
|
||||||
|
Loading…
Reference in New Issue
Block a user