readerbookmark: idx

reviewable/pr11534/r2
hius07 3 months ago committed by GitHub
parent 144265e0a3
commit 59b44fa303
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) UIManager:close(textviewer)
bookmark:setHighlightedText(item) bookmark:setHighlightedText(item)
if bookmark.show_edited_only then if bookmark.show_edited_only then
table.remove(item_table, item.ind) table.remove(item_table, item.idx)
end end
bookmark.refresh() bookmark.refresh()
end, end,
@ -559,7 +559,7 @@ function ReaderBookmark:onShowBookmark(match_table)
ok_text = _("Remove"), ok_text = _("Remove"),
ok_callback = function() ok_callback = function()
bookmark:removeHighlight(item) bookmark:removeHighlight(item)
table.remove(item_table, item.ind) table.remove(item_table, item.idx)
bm_menu:switchItemTable(nil, item_table, -1) bm_menu:switchItemTable(nil, item_table, -1)
UIManager:close(textviewer) UIManager:close(textviewer)
end, end,

Loading…
Cancel
Save