diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 04:08:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 04:08:11 -0600 |
| commit | a78eadea024c2b283b45f1711aeda39d60deab22 (patch) | |
| tree | 9bc410a7fa97ffa03fcb918efe8b477f864c2865 /addNode.go | |
| parent | 3ea3dd10db0e728240fc659bdd33c622d33e46b4 (diff) | |
pathsv0.0.2
Signed-off-by: Jeff Carr <[email protected]>
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") |
