testing code
This commit is contained in:
parent
a88937c508
commit
784eac740f
|
@ -78,6 +78,8 @@ func theSuperMouse(g *gocui.Gui, v *gocui.View) error {
|
||||||
func theNotsure(g *gocui.Gui, v *gocui.View) error {
|
func theNotsure(g *gocui.Gui, v *gocui.View) error {
|
||||||
log.Info("got to theNotsure(). now what? dark =", me.dark)
|
log.Info("got to theNotsure(). now what? dark =", me.dark)
|
||||||
me.refresh = true
|
me.refresh = true
|
||||||
|
log.Info("running VerifyParentId()")
|
||||||
|
me.treeRoot.VerifyParentId()
|
||||||
/*
|
/*
|
||||||
if me.debug {
|
if me.debug {
|
||||||
log.Info("debugging off")
|
log.Info("debugging off")
|
||||||
|
|
2
help.go
2
help.go
|
@ -1,7 +1,7 @@
|
||||||
// Copyright 2014 The gocui Authors. All rights reserved.
|
|
||||||
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
|
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
|
||||||
// Use of this source code is governed by the GPL 3.0
|
// Use of this source code is governed by the GPL 3.0
|
||||||
|
|
||||||
|
// Prior Copyright 2014 The gocui Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
|
10
table.go
10
table.go
|
@ -91,8 +91,16 @@ func (tk *guiWidget) deleteWidget() {
|
||||||
p := tk.parent
|
p := tk.parent
|
||||||
for i, child := range p.children {
|
for i, child := range p.children {
|
||||||
if tk == child {
|
if tk == child {
|
||||||
log.Info("deleteWidget() found parent with child to delete:", i, child.cuiName)
|
log.Info("deleteWidget() found parent with child to delete:", i, child.cuiName, child.WidgetId())
|
||||||
p.children = slices.Delete(p.children, i, i+1)
|
p.children = slices.Delete(p.children, i, i+1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tk.deleteTree()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (tk *guiWidget) deleteTree() {
|
||||||
|
for _, child := range tk.children {
|
||||||
|
child.deleteTree()
|
||||||
|
}
|
||||||
|
tk.Hide()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue