diff options
Diffstat (limited to 'addNode.go')
| -rw-r--r-- | addNode.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |
