summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/init.go b/init.go
index 79f7241..02d2623 100644
--- a/init.go
+++ b/init.go
@@ -10,6 +10,19 @@ import (
var muAction sync.Mutex
+/*
+func (me *TreeInfo) newAction(a widget.Action) *tree.Node {
+ switch a.ActionType {
+ case widget.Add:
+ n := me.treeRoot.FindWidgetId(a.WidgetId)
+ if n == nil {
+ n := me.AddNode(&a)
+ me.ActionFromChannel(n, a.ActionType)
+ }
+ }
+}
+*/
+
func (me *TreeInfo) catchActionChannel() {
defer func() {
if r := recover(); r != nil {
@@ -30,6 +43,7 @@ func (me *TreeInfo) catchActionChannel() {
} else {
// send this to the toolkit
me.ActionFromChannel(a)
+ // me.newAction(a)
}
muAction.Unlock()
}