Wikipedia: rework wiki languages internal handling

Fix various issues with stacked Wikipedia lookup results,
and follow up lookups when invoked from Wikipedia lookup
history (where going to a search for language LL would
not use language LL when hitting "Full wikipedia").
This commit is contained in:
poire-z
2022-01-16 17:48:13 +01:00
parent dccd0da4cc
commit 0216493c43
3 changed files with 121 additions and 84 deletions

View File

@@ -947,7 +947,7 @@ end
function ReaderDictionary:showDict(word, results, boxes, link)
if results and results[1] then
logger.dbg("showing quick lookup window", word, results)
logger.dbg("showing quick lookup window", #self.dict_window_list+1, ":", word, results)
self.dict_window = DictQuickLookup:new{
window_list = self.dict_window_list,
ui = self.ui,
@@ -962,7 +962,6 @@ function ReaderDictionary:showDict(word, results, boxes, link)
preferred_dictionaries = self.preferred_dictionaries,
-- differentiate between dict and wiki
is_wiki = self.is_wiki,
wiki_languages = self.wiki_languages,
refresh_callback = function()
if self.view then
-- update info in footer (time, battery, etc)