readerbookmark: 'ind' item property

reviewable/pr11534/r1
hius07 2 months ago committed by GitHub
parent 67407e3d93
commit 4d4559ea0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -535,7 +535,7 @@ function ReaderBookmark:onShowBookmark(match_table)
UIManager:close(textviewer)
bookmark:setHighlightedText(item)
if bookmark.show_edited_only then
table.remove(item_table, item.index)
table.remove(item_table, item.ind)
end
bookmark.refresh()
end,
@ -559,7 +559,7 @@ function ReaderBookmark:onShowBookmark(match_table)
ok_text = _("Remove"),
ok_callback = function()
bookmark:removeHighlight(item)
table.remove(item_table, item.index)
table.remove(item_table, item.ind)
bm_menu:switchItemTable(nil, item_table, -1)
UIManager:close(textviewer)
end,

Loading…
Cancel
Save