diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
| commit | a0baba0821441d9cf38f0b33fe12fb96925c6236 (patch) | |
| tree | 2aece2a890c66c36b08524e117753817078ee58c /andlabs/delete.go | |
| parent | bee272651ad38453aef27f098513f7be652c39bf (diff) | |
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'andlabs/delete.go')
| -rw-r--r-- | andlabs/delete.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/andlabs/delete.go b/andlabs/delete.go index d528b66..7d29bf2 100644 --- a/andlabs/delete.go +++ b/andlabs/delete.go @@ -3,8 +3,8 @@ package main // if you include more than just this import // then your plugin might be doing something un-ideal (just a guess from 2023/02/27) import ( + "go.wit.com/lib/widget" "go.wit.com/log" - "go.wit.com/gui/widget" ) // delete the child widget from the parent @@ -16,7 +16,7 @@ func (n *node) destroy() { pt := n.parent.tk ct := n.tk - if (ct == nil) { + if ct == nil { log.Log(NOW, "delete FAILED (ct = mapToolkit[c] == nil) for c", pId, cId) // this pukes out a whole universe of shit // listMap() @@ -30,7 +30,7 @@ func (n *node) destroy() { pt.Dump(true) log.Log(NOW, "Child:") ct.Dump(true) - if (pt.uiBox == nil) { + if pt.uiBox == nil { log.Log(NOW, "Don't know how to destroy this") } else { log.Log(NOW, "Fuck it, destroy the whole box", n.parent.progname) @@ -46,7 +46,7 @@ func (n *node) destroy() { log.Log(NOW, "Should delete Window here:", n.progname) default: log.Log(NOW, "Fuckit, let's destroy a button") - if (ct.uiButton != nil) { + if ct.uiButton != nil { pt.uiBox.Delete(4) ct.uiButton.Destroy() } |
