mirror of
https://github.com/koreader/koreader.git
synced 2026-11-30 09:18:04 +00:00
credocument: fix setupDefaultView already loaded check (#16030)
This commit is contained in:
1 parent
9ed0d2fbd1
commit
0840237f4b
1 file changed
+1
-1
@@ -222,7 +222,7 @@ function CreDocument:setAltDocumentProp(prop, value)
|
||||
end
|
||||
|
||||
function CreDocument:setupDefaultView()
|
||||
if self.loaded then
|
||||
if self._loaded then
|
||||
-- Don't apply defaults if the document has already been loaded
|
||||
-- as this must be done before calling loadDocument()
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user