mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user