ReaderZooming: Unconditionally update the configurables on SetZoomMode (#7735)

Expand #7728 to also catch SetZoomMode (mostly for Dispatcher's sake, but other things also send it).
This commit is contained in:
NiLuJe
2021-05-23 19:01:09 +02:00
committed by GitHub
parent e955a28796
commit 2067a16fa1
2 changed files with 43 additions and 42 deletions

View File

@@ -156,10 +156,6 @@ function ReaderCropping:setCropZoomMode(confirmed)
self:setZoomMode(zoom_mode_type
and "content"..zoom_mode_type
or self.orig_zoom_mode)
-- Update the configurable, too
self.document.configurable.zoom_mode_genus = zoom_mode_type
and 3 -- "content"
or 4 -- "page"
self.ui:handleEvent(Event:new("InitScrollPageStates"))
else
self:setZoomMode(self.orig_zoom_mode)