summaryrefslogtreecommitdiff
path: root/addNode.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
committerJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
commita78eadea024c2b283b45f1711aeda39d60deab22 (patch)
tree9bc410a7fa97ffa03fcb918efe8b477f864c2865 /addNode.go
parent3ea3dd10db0e728240fc659bdd33c622d33e46b4 (diff)
pathsv0.0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addNode.go')
-rw-r--r--addNode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/addNode.go b/addNode.go
index 36c5a06..ab0e687 100644
--- a/addNode.go
+++ b/addNode.go
@@ -4,7 +4,7 @@ import (
"errors"
"go.wit.com/log"
- "go.wit.com/lib/widget"
+ "go.wit.com/widget"
)
// this is in common.go, do not move it
@@ -17,14 +17,14 @@ func (me *TreeInfo) AddNode(a *widget.Action) *Node {
n.State = a.State
n.Strings = make(map[string]int)
- if (a.WidgetType == widget.Root) {
+ if a.WidgetType == widget.Root {
log.Info("AddNode() Root")
n.Parent = n
me.treeRoot = n
return n
}
- if (me.treeRoot.FindWidgetId(a.WidgetId) != nil) {
+ if me.treeRoot.FindWidgetId(a.WidgetId) != nil {
log.Warn("AddNode() WidgetId already exists", a.WidgetId)
log.Warn("probably this is a Show() / Hide() issue")
log.Warn("TODO: figure out what to do here")