summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 03:44:21 -0600
committerJeff Carr <[email protected]>2024-02-09 03:44:21 -0600
commit142be47d3a3290d369e424560346cc6dbfa11cc7 (patch)
tree76b17536fbf2d29fbd7567446c276e557160fb31 /main.go
parent695f116eecec0cc810c0046fc1369ba36ca313ed (diff)
more node state fixesv0.20.3v0.20.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9751842..aa8b6b9 100644
--- a/main.go
+++ b/main.go
@@ -59,6 +59,12 @@ func queueSetChecked(n *tree.Node, b bool) {
})
}
+func queueToolkitClose() {
+ ui.QueueMain(func() {
+ ui.Quit()
+ })
+}
+
/*
func queueMain(currentA widget.Action) {
// this never happends
@@ -130,6 +136,7 @@ func init() {
me.myTree.SetText = queueSetText
me.myTree.AddText = queueAddText
me.myTree.SetChecked = queueSetChecked
+ me.myTree.ToolkitClose = queueToolkitClose
// TODO: this is messed up. run ui.Main() from the first add? Initialize it with an empty thing first?
// fake out the OS toolkit by making a fake window. This is probably needed for macos & windows