[fix] Disable Highlight button when text is not selected (#3457)

pull/3462/head
Robert 7 years ago committed by Frans de Jonge
parent 198c151125
commit 178555180f

@ -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"))

Loading…
Cancel
Save