diff options
| author | Jeff Carr <[email protected]> | 2021-11-03 01:44:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-11-03 01:44:32 -0500 |
| commit | 234f4fbaa3b6014442b039f437da297f9fd404d3 (patch) | |
| tree | 563326be6e764f59e561abed6c9bd33155f9577f /button.go | |
| parent | 92488450644ef663c9a5a18639216bf4d0ff5755 (diff) | |
WINDOW: try to properly destroy a window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
