readerbookmark: fix writing pdf annotation (#10287)

reviewable/pr10289/r1
hius07 1 year ago committed by GitHub
parent d39cc78f9c
commit 827581ac72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1064,7 +1064,9 @@ function ReaderBookmark:setBookmarkNote(item, from_highlight, is_new_note, new_t
local bm = self.bookmarks[index]
bm.text = value
self.ui:handleEvent(Event:new("BookmarkEdited", bm))
self.ui.highlight:writePdfAnnotation("content", bookmark.page, bookmark, bookmark.text)
if bookmark.highlighted then
self.ui.highlight:writePdfAnnotation("content", bookmark.page, bookmark, bookmark.text)
end
UIManager:close(self.input)
if from_highlight then
if self.view.highlight.note_mark then

Loading…
Cancel
Save