mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add Statistic plugin (#1581 Amount of hours spent on a book)
Changes based on comments
This commit is contained in:
@@ -384,11 +384,9 @@ function ReaderHighlight:highlightFromHoldPos()
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
function ReaderHighlight:onHighlight()
|
||||
self:saveHighlight()
|
||||
end
|
||||
]]
|
||||
|
||||
function ReaderHighlight:getHighlightBookmarkItem()
|
||||
if self.hold_pos and not self.selected_text then
|
||||
@@ -410,7 +408,7 @@ function ReaderHighlight:getHighlightBookmarkItem()
|
||||
end
|
||||
|
||||
function ReaderHighlight:saveHighlight()
|
||||
self:handleEvent(Event:new("Highlight"))
|
||||
self:handleEvent(Event:new("AddHighlight"))
|
||||
DEBUG("save highlight")
|
||||
local page = self.hold_pos.page
|
||||
if self.hold_pos and self.selected_text and self.selected_text.pos0
|
||||
|
||||
Reference in New Issue
Block a user