summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-07 06:58:13 -0600
committerJeff Carr <[email protected]>2024-02-07 06:58:13 -0600
commit99a42bf88bf9319efc012ee9c15854004fff28b5 (patch)
tree61ec732d772553706700e102bad36116a22195cb /main.go
parent9aafc45c0b50dba5048a58e0076002471a2c8306 (diff)
dump old code
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 27e61cc..39b42f1 100644
--- a/main.go
+++ b/main.go
@@ -53,6 +53,12 @@ func queueAddText(n *tree.Node, s string) {
})
}
+func queueSetChecked(n *tree.Node, b bool) {
+ ui.QueueMain(func() {
+ setChecked(n, b)
+ })
+}
+
/*
func queueMain(currentA widget.Action) {
// this never happends
@@ -123,6 +129,7 @@ func init() {
me.myTree.SetLabel = queueSetLabel
me.myTree.SetText = queueSetText
me.myTree.AddText = queueAddText
+ me.myTree.SetChecked = queueSetChecked
// 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