diff options
| author | Jeff Carr <[email protected]> | 2021-10-24 09:01:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-24 09:01:51 -0500 |
| commit | 23e4e139f1df01bfdd8987c48309a1e50977b7a1 (patch) | |
| tree | 0eecb69307b0603bbf4f49852104e861e42bedf0 /new-structs.go | |
| parent | a915cecec02306363039c3ef32226670ec935b8d (diff) | |
NODE: it builds, runs and doesn't crashv0.0.4
Also, it doesn't really work as the formatting and other buttons
and things don't get populated
Diffstat (limited to 'new-structs.go')
| -rw-r--r-- | new-structs.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/new-structs.go b/new-structs.go index 397372c..d1ed875 100644 --- a/new-structs.go +++ b/new-structs.go @@ -130,10 +130,12 @@ func (n *Node) Append(child *Node) { // return // } n.children = append(n.children, child) - log.Println("child node:") - child.Dump() - log.Println("parent node:") - n.Dump() + if (Config.Debug) { + log.Println("child node:") + child.Dump() + log.Println("parent node:") + n.Dump() + } // time.Sleep(3 * time.Second) } @@ -275,7 +277,7 @@ func (parent *Node) AddTab(title string, uiC ui.Control) *Node { parent.uiWindow.SetMargined(true) parent.uiTab = inittab - parent.Dump() + // parent.Dump() // panic("gui.AddTab() ERROR uiTab == nil") } @@ -288,7 +290,9 @@ func (parent *Node) AddTab(title string, uiC ui.Control) *Node { tab.Append(title, uiC) tab.SetMargined(0, true) + // panic("gui.AddTab() before makeNode()") newNode := parent.makeNode(title, 555, 600 + Config.counter) newNode.uiTab = tab + // panic("gui.AddTab() after makeNode()") return newNode } |
