summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 14:44:47 -0600
committerJeff Carr <[email protected]>2024-01-21 14:44:47 -0600
commit1fdf786a72fd4af0c1acca45b250b5f66ef3e31b (patch)
tree0f247e40f69c8bdce56574a3b608c78955b6b447 /window.go
parentba70be3064c1d082eb0e9146562b7f07dd894fb0 (diff)
visable state is honored. TODO: fix hide/show
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/window.go b/window.go
index 705b346..f158206 100644
--- a/window.go
+++ b/window.go
@@ -14,11 +14,12 @@ func (parent *Node) NewWindow(title string) *Node {
newNode = parent.newNode(title, widget.Window)
newNode.Custom = StandardExit
- log.Info("NewWindow()", title)
+ log.Log(INFO, "NewWindow()", title)
newNode.progname = title
newNode.label = title
newNode.value = title
newNode.margin = true
+ newNode.visable = true
// inform the toolkits
sendAction(newNode, widget.Add)
@@ -32,8 +33,9 @@ func (parent *Node) RawWindow(title string) *Node {
// Windows are created off of the master node of the Binary Tree
newNode = parent.newNode(title, widget.Window)
newNode.hidden = true
+ newNode.visable = false
- log.Info("RawWindow()", title)
+ log.Log(INFO, "RawWindow()", title)
return newNode
}