[statistic plugin] Don't generate md5 sum on open document (#5528)

There is no need to generate a md5 sum for documents that were already opened.
pull/5536/head
Robert 5 years ago committed by Frans de Jonge
parent 39b532b85b
commit dec0e73a7b

@ -174,7 +174,9 @@ function ReaderStatistics:initData()
self.data.series = book_properties.series
self.data.pages = self.view.document:getPageCount()
self.data.md5 = self:partialMd5(self.document.file)
if not self.data.md5 then
self.data.md5 = self:partialMd5(self.document.file)
end
self.curr_total_time = 0
self.curr_total_pages = 0
self.id_curr_book = self:getIdBookDB()

Loading…
Cancel
Save