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

This commit is contained in:
Robert
2017-11-01 15:50:53 +01:00
committed by Frans de Jonge
parent 198c151125
commit 178555180f

View File

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