Couple of minor fixes (#13185)

This commit is contained in:
hius07
2025-02-01 21:25:51 +02:00
committed by GitHub
parent 763264a102
commit 8606b132e4
5 changed files with 25 additions and 26 deletions

View File

@@ -2051,7 +2051,7 @@ function ReaderHighlight:saveHighlight(extend_to_sentence)
end
local index = self.ui.annotation:addItem(item)
self.view.footer:maybeUpdateFooter()
self.ui:handleEvent(Event:new("AnnotationsModified", { item, nb_highlights_added = 1 }))
self.ui:handleEvent(Event:new("AnnotationsModified", { item, nb_highlights_added = 1, update_datetime = false }))
return index
end
end