Highlight: add note marker (#9395)

This commit is contained in:
hius07
2022-08-03 16:51:57 +03:00
committed by GitHub
parent d352579d06
commit f67469bab4
3 changed files with 151 additions and 7 deletions

View File

@@ -1098,7 +1098,11 @@ function ReaderBookmark:renameBookmark(item, from_highlight, is_new_note, new_te
end
end
UIManager:close(self.input)
if not from_highlight then
if from_highlight then
if self.view.highlight.note_mark then
UIManager:setDirty(self.dialog, "ui") -- refresh note marker
end
else
bookmark.type = self:getBookmarkType(bookmark)
bookmark.text_orig = bookmark.text
bookmark.text = DISPLAY_PREFIX[bookmark.type] .. bookmark.text