From 178555180f437715c4fb0f5b356a6ed3c1d45a2b Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 1 Nov 2017 15:50:53 +0100 Subject: [PATCH] [fix] Disable Highlight button when text is not selected (#3457) --- frontend/ui/widget/dictquicklookup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/dictquicklookup.lua b/frontend/ui/widget/dictquicklookup.lua index 9ae8ec97a..22b0e6e76 100644 --- a/frontend/ui/widget/dictquicklookup.lua +++ b/frontend/ui/widget/dictquicklookup.lua @@ -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"))