add calling item.callback() as default onMenuChoice action
This commit is contained in:
1 parent
9468b504c1
commit
22c3043959
3 files changed
+6
-12
No files matched your search
@@ -73,11 +73,6 @@ function ReaderMenu:onShowMenu()
|
||||
item_table = self.item_table,
|
||||
width = Screen:getWidth() - 100,
|
||||
}
|
||||
function main_menu:onMenuChoice(item)
|
||||
if item.callback then
|
||||
item.callback()
|
||||
end
|
||||
end
|
||||
|
||||
local menu_container = CenterContainer:new{
|
||||
ignore = "height",
|
||||
|
||||
Reference in new issue
Block a user