[CRe] Tweak nightmode and CRe call cache interaction (#6859)

Simplify 4caf8f28 (#6854), allowing us not to track
nightmode in two places.
This commit is contained in:
yparitcher
2020-11-08 16:55:11 -05:00
committed by GitHub
parent 7fb20f2c55
commit edec69ac8b
3 changed files with 6 additions and 9 deletions

View File

@@ -108,7 +108,6 @@ function ReaderTypeset:onReadSettings(config)
end
self:toggleImageScaling(self.smooth_scaling)
self.ui.document:setNightMode(Screen.night_mode)
-- default to automagic nightmode-friendly handling of images
self.nightmode_images = config:readSetting("nightmode_images")
if self.nightmode_images == nil then