From a78eadea024c2b283b45f1711aeda39d60deab22 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 04:08:11 -0600 Subject: paths Signed-off-by: Jeff Carr --- addNode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addNode.go') 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") -- cgit v1.2.3