mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
readerfooter(minor): just incase self.pages is nil
This commit is contained in:
2
base
2
base
Submodule base updated: b5c82144e2...02c4e24e73
@@ -295,7 +295,7 @@ function ReaderFooter:updateFooterText()
|
||||
|
||||
if #ticks_candidates > 0 then
|
||||
self.progress_bar.ticks = ticks_candidates[1]
|
||||
self.progress_bar.last = self.pages
|
||||
self.progress_bar.last = self.pages or self.view.document:getPageCount()
|
||||
else
|
||||
-- we still set ticks here so self.progress_bar.ticks will not be
|
||||
-- initialized again if ticks_candidates is empty
|
||||
|
||||
Reference in New Issue
Block a user