2
0
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:
Frans de Jonge 2020-12-19 20:02:09 +01:00 committed by GitHub
parent 642978c97c
commit a5b133dadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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