diff options
| author | ruki <[email protected]> | 2018-01-23 00:47:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-22 22:44:03 +0800 |
| commit | ac234fd5eb079d9e21485ac7d4b06c2c30d2db2a (patch) | |
| tree | b1e636c11fb9a4128f00f71a42f9c3b07a0fae64 /tests/ui | |
| parent | 6d116a4bc1b58f660a60ff206c6c57ee9c939805 (diff) | |
add exit command
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/mconfdialog.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/mconfdialog.lua b/tests/ui/mconfdialog.lua index 2eca8dc2f..9208b7099 100644 --- a/tests/ui/mconfdialog.lua +++ b/tests/ui/mconfdialog.lua @@ -45,6 +45,7 @@ function demo:init() -- init menu config dialog local mconfdialog = mconfdialog:new("mconfdialog.main", rect {1, 1, self:width() - 1, self:height() - 1}, "menu config") + mconfdialog:action_set("command.exit", function (v, e) self:quit() end) self:insert(mconfdialog) end |
