mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix performance issue of screensaver on Kobo
now loadDocument will not render the document and getCoverPageImage will be much faster.
This commit is contained in:
@@ -220,9 +220,9 @@ function ReaderUI:init()
|
||||
document = self.document,
|
||||
})
|
||||
else
|
||||
-- make sure we load document first before calling any callback
|
||||
-- make sure we render document first before calling any callback
|
||||
table.insert(self.postInitCallback, function()
|
||||
self.document:loadDocument()
|
||||
self.document:render()
|
||||
end)
|
||||
-- typeset controller
|
||||
table.insert(self, ReaderTypeset:new{
|
||||
|
||||
Reference in New Issue
Block a user