From a0baba0821441d9cf38f0b33fe12fb96925c6236 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Jan 2024 23:39:03 -0600 Subject: new paths Signed-off-by: Jeff Carr --- andlabs/delete.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'andlabs/delete.go') 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() } -- cgit v1.2.3