Menu widget: fix item property name (#11534)

This commit is contained in:
hius07
2024-03-12 08:51:33 +02:00
committed by GitHub
parent 0eaa2d8248
commit 5414858b74
2 changed files with 3 additions and 3 deletions

View File

@@ -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.idx)
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.idx)
bm_menu:switchItemTable(nil, item_table, -1)
UIManager:close(textviewer)
end,