summaryrefslogtreecommitdiff
path: root/xmake/core/ui/button.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-12 00:39:22 +0800
committerruki <[email protected]>2018-01-11 21:56:13 +0800
commitb8276d35af753721b99e893d92485c99e2de111f (patch)
tree26f3228f129e671622e10e784aaa00ce85239dde /xmake/core/ui/button.lua
parent3d4fcf847c7a7f365f84d4c4064597c66e124d4c (diff)
add buttons to dialog
Diffstat (limited to 'xmake/core/ui/button.lua')
-rw-r--r--xmake/core/ui/button.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/ui/button.lua b/xmake/core/ui/button.lua
index 0464c8617..b78c0bc11 100644
--- a/xmake/core/ui/button.lua
+++ b/xmake/core/ui/button.lua
@@ -31,7 +31,7 @@ local curses = require("ui/curses")
local button = button or label()
-- init button
-function button:init(name, bounds, text)
+function button:init(name, bounds, text, command)
-- init label
label.init(self, name, bounds, text)