summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-11-03 01:44:32 -0500
committerJeff Carr <[email protected]>2021-11-03 01:44:32 -0500
commit234f4fbaa3b6014442b039f437da297f9fd404d3 (patch)
tree563326be6e764f59e561abed6c9bd33155f9577f /button.go
parent92488450644ef663c9a5a18639216bf4d0ff5755 (diff)
WINDOW: try to properly destroy a window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/button.go b/button.go
index 8fddf6e..c1c1c73 100644
--- a/button.go
+++ b/button.go
@@ -27,8 +27,10 @@ func (n *Node) AddButton(name string, custom func(*Node)) *Node {
return n
}
button := ui.NewButton(name)
- log.Println("reflect.TypeOF(uiBox) =", reflect.TypeOf(n.uiBox))
- log.Println("reflect.TypeOF(uiButton) =", reflect.TypeOf(button))
+ if (Config.Debug) {
+ log.Println("reflect.TypeOF(uiBox) =", reflect.TypeOf(n.uiBox))
+ log.Println("reflect.TypeOF(uiButton) =", reflect.TypeOf(button))
+ }
// true == expand, false == make normal size button
n.uiBox.Append(button, false)
n.uiButton = button