mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Statistics main: revert erroneous nextTick in onReaderReady() (#13592)
This commit is contained in:
@@ -2840,15 +2840,13 @@ function ReaderStatistics:onReadingResumed()
|
||||
end
|
||||
|
||||
function ReaderStatistics:onReaderReady(config)
|
||||
UIManager:nextTick(function()
|
||||
if self.settings and self.settings.is_enabled then
|
||||
if self.settings.is_enabled then
|
||||
self.data = config:readSetting("stats", { performance_in_pages = {} })
|
||||
self.doc_md5 = config:readSetting("partial_md5_checksum")
|
||||
-- we have correct page count now, do the actual initialization work
|
||||
self:initData()
|
||||
self.view.footer:maybeUpdateFooter()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
function ReaderStatistics:onShowCalendarView()
|
||||
|
||||
Reference in New Issue
Block a user