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:
1 parent
e955a28796
commit
2067a16fa1
2 files changed
+43
-42
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user