mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Screensaver: nil guard lastfile in cover mode
`hasSidecarFile` assumes you're feeding it a string. Plus, that check was super funky anyway. Fix #11336
This commit is contained in:
@@ -431,9 +431,8 @@ function Screensaver:setup(event, event_message)
|
||||
self.screensaver_type = "cover"
|
||||
end
|
||||
if self.screensaver_type == "cover" then
|
||||
lastfile = lastfile ~= nil and lastfile or G_reader_settings:readSetting("lastfile")
|
||||
local excluded
|
||||
if DocSettings:hasSidecarFile(lastfile) then
|
||||
if lastfile and DocSettings:hasSidecarFile(lastfile) then
|
||||
local doc_settings
|
||||
if ui and ui.doc_settings then
|
||||
doc_settings = ui.doc_settings
|
||||
|
||||
Reference in New Issue
Block a user