mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #953 from chrox/fix_916
check if last opened file exists before opening it
This commit is contained in:
@@ -134,6 +134,9 @@ if fontmap ~= nil then
|
||||
end
|
||||
-- last file
|
||||
local last_file = G_reader_settings:readSetting("lastfile")
|
||||
if last_file and lfs.attributes(last_file, "mode") ~= "file" then
|
||||
last_file = nil
|
||||
end
|
||||
-- load last opened file
|
||||
local open_last = G_reader_settings:readSetting("open_last")
|
||||
-- night mode
|
||||
|
||||
Reference in New Issue
Block a user