diff options
| author | Jeff Carr <[email protected]> | 2024-01-27 09:55:16 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-27 09:55:16 -0600 |
| commit | ad0b252feb1bd3e758150b326c778fe4636ffe49 (patch) | |
| tree | c75b5c63e60781bbe3fa4a3e2a75915f685efcc4 /common.go | |
| parent | 904801c593617810085e6b445224f0dacc4117c7 (diff) | |
nocui worksv0.13.14
set enable state
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |
