mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
MenuSorter: initial implementation
* Menus are now sanely configurable * Custom separator placement for clearer menus
This commit is contained in:
@@ -310,7 +310,7 @@ end
|
||||
|
||||
function ReaderZooming:addToMainMenu(tab_item_table)
|
||||
if self.ui.document.info.has_pages then
|
||||
table.insert(tab_item_table.typeset, {
|
||||
self.ui.menu.menu_items["switch_zoom_mode"] = {
|
||||
text = _("Switch zoom mode"),
|
||||
enabled_func = function()
|
||||
return self.ui.document.configurable.text_wrap ~= 1
|
||||
@@ -353,7 +353,7 @@ function ReaderZooming:addToMainMenu(tab_item_table)
|
||||
hold_callback = function() self:makeDefault("page") end,
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user