summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-27 09:55:16 -0600
committerJeff Carr <[email protected]>2024-01-27 09:55:16 -0600
commitad0b252feb1bd3e758150b326c778fe4636ffe49 (patch)
treec75b5c63e60781bbe3fa4a3e2a75915f685efcc4 /common.go
parent904801c593617810085e6b445224f0dacc4117c7 (diff)
nocui worksv0.13.14
set enable state Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/common.go b/common.go
index 500e64d..dc77989 100644
--- a/common.go
+++ b/common.go
@@ -45,10 +45,10 @@ func (n *Node) Hide() *Node {
if n.WidgetType == widget.Window {
log.Log(CHANGE, "Hide() on a window", n.progname)
- log.Log(CHANGE, "Hide() this needs to do TestDestroy() ?")
- n.Destroy()
+ log.Log(CHANGE, "Hide() this needs to do destroy() ?")
+ n.destroy()
n.hidden = true
- // n.visable = false
+ n.visable = false
n.changed = true
return nil
}
@@ -157,7 +157,7 @@ func (n *Node) Strings() []string {
return tmp
}
-func (n *Node) Destroy() {
+func (n *Node) destroy() {
if !n.Ready() {
return
}
@@ -165,7 +165,7 @@ func (n *Node) Destroy() {
n.enabled = false
n.changed = true
- log.Log(CHANGE, "Destroy()", n.WidgetType, n.id, n.GetProgName())
+ log.Log(CHANGE, "destroy()", n.WidgetType, n.id, n.GetProgName())
// inform the toolkits
sendAction(n, widget.Delete)