MenuSorter: fix outside testability (for potential unit tests)
This commit is contained in:
1 parent
653ff64438
commit
a970a1f034
27 files changed
+58
-56
No files matched your search
@@ -308,9 +308,9 @@ function ReaderZooming:setZoomMode(mode)
|
||||
self.ui:handleEvent(Event:new("InitScrollPageStates"))
|
||||
end
|
||||
|
||||
function ReaderZooming:addToMainMenu(tab_item_table)
|
||||
function ReaderZooming:addToMainMenu(menu_items)
|
||||
if self.ui.document.info.has_pages then
|
||||
self.ui.menu.menu_items.switch_zoom_mode = {
|
||||
menu_items.switch_zoom_mode = {
|
||||
text = _("Switch zoom mode"),
|
||||
enabled_func = function()
|
||||
return self.ui.document.configurable.text_wrap ~= 1
|
||||
|
||||
Reference in new issue
Block a user