Statistics: fix a crash in continuous mode opening statistics page (#11279)

reviewable/pr11282/r1
greatyingzi 4 months ago committed by GitHub
parent 7a421ea3ab
commit c12b4f2e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1629,7 +1629,7 @@ function ReaderStatistics:getCurrentStat()
page_progress_string = ("[%d / %d]%d (%d%%)"):format(current_page, total_pages, flow, percent_read)
end
else
current_page = self.view.state.page
current_page = self.ui:getCurrentPage()
total_pages = self.data.pages
percent_read = Math.round(100*current_page/total_pages)
page_progress_string = ("%d / %d (%d%%)"):format(current_page, total_pages, percent_read)

Loading…
Cancel
Save