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
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user