Revamp ToC ticks handling (#6716)

Replace the level `0` `getTocTicks` heuristic with a simple sorted, deduped flat listing of *every* ToC node (via `getTocTicksFlattened`).
This commit is contained in:
NiLuJe
2020-09-27 22:25:16 +02:00
committed by GitHub
parent 25d5e9322c
commit 1ac5846eff
5 changed files with 133 additions and 144 deletions

View File

@@ -983,7 +983,7 @@ function ReaderRolling:updateTopStatusBarMarkers()
return
end
local pages = self.ui.document:getPageCount()
local ticks = self.ui.toc:getTocTicksForFooter()
local ticks = self.ui.toc:getTocTicksFlattened()
self.ui.document:setHeaderProgressMarks(pages, ticks)
end