mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
ReaderThumbnail: clear cache on rendering mode change
This commit is contained in:
parent
8ced47921a
commit
97735ce496
@ -542,6 +542,10 @@ function ReaderThumbnail:onCloseDocument()
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderThumbnail:onRenderingModeUpdate()
|
||||
self:resetCache()
|
||||
end
|
||||
|
||||
function ReaderThumbnail:onColorRenderingUpdate()
|
||||
self:setupColor()
|
||||
self:resetCache()
|
||||
|
@ -1063,6 +1063,7 @@ function ReaderView:getRenderModeMenuTable()
|
||||
view.render_mode = mode
|
||||
view.document.render_mode = mode
|
||||
view:recalculate()
|
||||
UIManager:broadcastEvent(Event:new("RenderingModeUpdate"))
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user