Statistics main: revert erroneous nextTick in onReaderReady() (#13592)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
hius07
2025-04-14 20:52:40 +03:00
committed by GitHub
parent dee2411a4b
commit cd2ad10a18

View File

@@ -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()