summaryrefslogtreecommitdiff
path: root/core/lua/test.lua
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-10-09 03:08:51 +0000
committerAylur <[email protected]>2024-10-09 03:08:51 +0000
commitd6cbbdfb3f6e81c8265af36c88fd9547d93f9cbd (patch)
treea4f018b52cde3e4b10967f22d05861c4d4b9c73d /core/lua/test.lua
parent2fa83eb09047e603835c462ff0d8a04eba016807 (diff)
core: implement generic no_implicit_destroy prop
Diffstat (limited to 'core/lua/test.lua')
-rw-r--r--core/lua/test.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/lua/test.lua b/core/lua/test.lua
new file mode 100644
index 0000000..2494403
--- /dev/null
+++ b/core/lua/test.lua
@@ -0,0 +1,13 @@
+local a = require("astal")
+
+a.App:start({
+ instance_name = "Hello",
+ main = function()
+ a.Widget.Window({
+ no_implicit_destroy = true,
+ a.Widget.Button({
+ label = "hello",
+ }),
+ })
+ end,
+})