From c03625c5d5b3055a24a14d333711c946a5d912b6 Mon Sep 17 00:00:00 2001 From: Commodore64user <97603719+Commodore64user@users.noreply.github.com> Date: Mon, 22 Jun 2026 00:44:36 +0100 Subject: [PATCH] insert book_title_button only in vocab_builder widget --- plugins/vocabbuilder.koplugin/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/vocabbuilder.koplugin/main.lua b/plugins/vocabbuilder.koplugin/main.lua index 89e37f2a6..99bbef4d4 100644 --- a/plugins/vocabbuilder.koplugin/main.lua +++ b/plugins/vocabbuilder.koplugin/main.lua @@ -621,7 +621,9 @@ function WordInfoDialog:init() } table.insert(self.layout, {copy_button}) - table.insert(self.layout, {self.book_title_button}) + if self.vocabbuilder then + table.insert(self.layout, {self.book_title_button}) + end self:mergeLayoutInVertical(focus_button) local has_context = self.prev_context or self.next_context