[plugin] QR: fix failure to load in file browser (#12833)

Cf. https://github.com/koreader/koreader/pull/12746#issuecomment-2510910142
This commit is contained in:
David
2024-12-12 21:21:32 +00:00
committed by GitHub
parent 85b8689d39
commit 6565a7eaf6

View File

@@ -18,7 +18,9 @@ local QRClipboard = WidgetContainer:extend{
function QRClipboard:init()
self.ui.menu:registerToMainMenu(self)
self:addToHighlightDialog()
if self.ui.highlight then
self:addToHighlightDialog()
end
end
function QRClipboard:addToHighlightDialog()