mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix(setting): handle empty setting files properly
empty reader setting evalues to nil
This commit is contained in:
@@ -50,7 +50,7 @@ function DocSettings:open(docfile)
|
||||
-- takes care of reader legacy setting
|
||||
ok, stored = pcall(dofile, docfile..".kpdfview.lua")
|
||||
end
|
||||
if ok then
|
||||
if ok and stored then
|
||||
new.data = stored
|
||||
end
|
||||
return setmetatable(new, { __index = DocSettings})
|
||||
|
||||
Reference in New Issue
Block a user