mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[fix] Disable Highlight button when text is not selected (#3457)
This commit is contained in:
@@ -339,7 +339,7 @@ function DictQuickLookup:update()
|
||||
},
|
||||
{
|
||||
text = self:getHighlightText(),
|
||||
enabled = true,
|
||||
enabled = self.highlight ~= nil,
|
||||
callback = function()
|
||||
if self:getHighlightText() == highlight_strings.highlight then
|
||||
self.ui:handleEvent(Event:new("Highlight"))
|
||||
|
||||
Reference in New Issue
Block a user