[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 authored and GitHub committed 2020-09-05 14:54:53 +02:00
1 parent 4e281f00ed
commit 16ece06d45
2 files changed
+23

No files matched your search

@@ -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