mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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