ReaderThumbnail: clear cache on rendering mode change
This commit is contained in:
1 parent
8ced47921a
commit
97735ce496
2 files changed
+5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user