2
0
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:
Benoit Pierre 2024-07-15 01:53:43 +02:00 committed by Frans de Jonge
parent 8ced47921a
commit 97735ce496
2 changed files with 5 additions and 0 deletions

View File

@ -542,6 +542,10 @@ function ReaderThumbnail:onCloseDocument()
end
end
function ReaderThumbnail:onRenderingModeUpdate()
self:resetCache()
end
function ReaderThumbnail:onColorRenderingUpdate()
self:setupColor()
self:resetCache()

View File

@ -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