summaryrefslogtreecommitdiff
path: root/xmake/core/ui/dialog.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-16 22:37:14 +0800
committerruki <[email protected]>2018-01-16 09:43:29 +0800
commit4bc80943272b031e41a7047f795d85a04682cbd6 (patch)
tree4276043c0055ef7247d5fffd080b3490ccda7a28 /xmake/core/ui/dialog.lua
parent3b822fc48d1b11055e12463872c22950d2c61b4d (diff)
improve select view
Diffstat (limited to 'xmake/core/ui/dialog.lua')
-rw-r--r--xmake/core/ui/dialog.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/ui/dialog.lua b/xmake/core/ui/dialog.lua
index 4ab34b322..57d94b64b 100644
--- a/xmake/core/ui/dialog.lua
+++ b/xmake/core/ui/dialog.lua
@@ -87,5 +87,11 @@ function dialog:button_add(name, text, command)
return btn
end
+-- select button from the given button name
+function dialog:button_select(name)
+ self:buttons():select(self:button(name))
+ return self
+end
+
-- return module
return dialog