VocabBuilder.koplugin: save dict headword as entry (#12530)

Closes #12529.
This commit is contained in:
weijiuqiao
2024-09-19 00:54:09 +08:00
committed by GitHub
parent 3401bed3d1
commit 2e6407357d

View File

@@ -2038,7 +2038,7 @@ function VocabBuilder:onDictButtonsReady(dict_popup, buttons)
font_bold = false,
callback = function()
local book_title = (dict_popup.ui.doc_props and dict_popup.ui.doc_props.display_title) or _("Dictionary lookup")
dict_popup.ui:handleEvent(Event:new("WordLookedUp", dict_popup.word, book_title, true)) -- is_manual: true
dict_popup.ui:handleEvent(Event:new("WordLookedUp", dict_popup.lookupword, book_title, true)) -- is_manual: true
local button = dict_popup.button_table.button_by_id["vocabulary"]
if button then
button:disable()