mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add calling item.callback() as default onMenuChoice action
This commit is contained in:
@@ -99,11 +99,6 @@ function ReaderFont:onShowFontMenu()
|
||||
item_table = self.face_table,
|
||||
width = Screen:getWidth() - 100,
|
||||
}
|
||||
function main_menu:onMenuChoice(item)
|
||||
if item.callback then
|
||||
item.callback()
|
||||
end
|
||||
end
|
||||
-- build container
|
||||
local menu_container = CenterContainer:new{
|
||||
main_menu,
|
||||
|
||||
Reference in New Issue
Block a user