|
|
@ -914,7 +914,7 @@ function ReaderDictionary:showDict(word, results, box, link)
|
|
|
|
self:dismissLookupInfo()
|
|
|
|
self:dismissLookupInfo()
|
|
|
|
if results and results[1] then
|
|
|
|
if results and results[1] then
|
|
|
|
UIManager:show(self.dict_window)
|
|
|
|
UIManager:show(self.dict_window)
|
|
|
|
if not results.lookup_cancelled and ffiUtil.getDuration(self._lookup_start_ts) > self.quick_dismiss_before_delay then
|
|
|
|
if not results.lookup_cancelled and self._lookup_start_ts and ffiUtil.getDuration(self._lookup_start_ts) > self.quick_dismiss_before_delay then
|
|
|
|
-- If the search took more than a few seconds to be done, discard
|
|
|
|
-- If the search took more than a few seconds to be done, discard
|
|
|
|
-- queued and coming up events to avoid a voluntary dismissal
|
|
|
|
-- queued and coming up events to avoid a voluntary dismissal
|
|
|
|
-- (because the user felt the result would not come) to kill the
|
|
|
|
-- (because the user felt the result would not come) to kill the
|
|
|
|