mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
[UX] Wait 0.5s before showing "searching for" dialog (#7012)
Fixes <https://github.com/koreader/koreader/issues/3030>. Cross-ref to <https://github.com/koreader/koreader/pull/6998>.
This commit is contained in:
parent
642978c97c
commit
a5b133dadc
@ -819,10 +819,11 @@ function ReaderDictionary:stardictLookup(word, dict_names, fuzzy_search, box, li
|
|||||||
end
|
end
|
||||||
|
|
||||||
if fuzzy_search then
|
if fuzzy_search then
|
||||||
self:showLookupInfo(word)
|
UIManager:scheduleIn(0.5, self.showLookupInfo, self, word)
|
||||||
end
|
end
|
||||||
|
|
||||||
local results = self:startSdcv(word, dict_names, fuzzy_search)
|
local results = self:startSdcv(word, dict_names, fuzzy_search)
|
||||||
|
UIManager:unschedule(self.showLookupInfo)
|
||||||
self:showDict(word, tidyMarkup(results), box, link)
|
self:showDict(word, tidyMarkup(results), box, link)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user