[UX] Add bookmark count as footer item (#6629)

Optionally display number of bookmarks in footer. If no bookmarks defined, don't show this item
This commit is contained in:
smartscripts-nl
2020-09-05 14:54:53 +02:00
committed by GitHub
parent 4e281f00ed
commit 16ece06d45
2 changed files with 23 additions and 0 deletions

View File

@@ -681,6 +681,10 @@ function ReaderBookmark:hasBookmarks()
return self.bookmarks and #self.bookmarks > 0
end
function ReaderBookmark:getNumberOfBookmarks()
return self.bookmarks and #self.bookmarks or 0
end
function ReaderBookmark:getNumberOfHighlightsAndNotes()
local highlights = 0
local notes = 0