From a5b133dadc9cf1ebe5a88bcc0cc7a1cb7ac4f465 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sat, 19 Dec 2020 20:02:09 +0100 Subject: [PATCH] [UX] Wait 0.5s before showing "searching for" dialog (#7012) Fixes . Cross-ref to . --- frontend/apps/reader/modules/readerdictionary.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readerdictionary.lua b/frontend/apps/reader/modules/readerdictionary.lua index 24dcf70b1..604feef72 100644 --- a/frontend/apps/reader/modules/readerdictionary.lua +++ b/frontend/apps/reader/modules/readerdictionary.lua @@ -819,10 +819,11 @@ function ReaderDictionary:stardictLookup(word, dict_names, fuzzy_search, box, li end if fuzzy_search then - self:showLookupInfo(word) + UIManager:scheduleIn(0.5, self.showLookupInfo, self, word) end local results = self:startSdcv(word, dict_names, fuzzy_search) + UIManager:unschedule(self.showLookupInfo) self:showDict(word, tidyMarkup(results), box, link) end