mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Wikipedia results: fix images not updated across results
Some results fields were forgotten by the "smarter update"
from a38881a9.
This commit is contained in:
@@ -810,7 +810,11 @@ function DictQuickLookup:update()
|
||||
self.text_widget:resetScroll()
|
||||
elseif not self.is_html and self.stw_widget then
|
||||
-- Re-use our ScrollTextWidget (self.stw_widget)
|
||||
-- Update properties that may change across results (as done in DictQuickLookup:_instantiateScrollWidget())
|
||||
self.text_widget.text_widget.text = self.definition
|
||||
self.text_widget.text_widget.lang = self.lang and self.lang:lower()
|
||||
self.text_widget.text_widget.para_direction_rtl = self.rtl_lang
|
||||
self.text_widget.text_widget.images = self.images
|
||||
-- NOTE: The recursive free via our WidgetContainer (self[1]) above already free'd us ;)
|
||||
self.text_widget.text_widget:init()
|
||||
-- Scroll back to top
|
||||
|
||||
@@ -244,6 +244,7 @@ end
|
||||
-- Split the text into logical lines to fit into the text box.
|
||||
function TextBoxWidget:_splitToLines()
|
||||
self.vertical_string_list = {}
|
||||
self.line_num_to_image = nil
|
||||
|
||||
local idx = 1
|
||||
local size = #self.charlist
|
||||
|
||||
Reference in New Issue
Block a user