andlabs: fix bug in flags and chan window create
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
cd47489d85
commit
70253c31f2
|
@ -137,7 +137,7 @@ Creates a window helpful for debugging this package
|
|||
|
||||
loads and initializes a toolkit (andlabs/ui, gocui, etc)
|
||||
|
||||
### func [Main](/main.go#L121)
|
||||
### func [Main](/main.go#L127)
|
||||
|
||||
`func Main(f func())`
|
||||
|
||||
|
@ -159,7 +159,7 @@ This should not pass a function
|
|||
|
||||
`func ShowDebugValues()`
|
||||
|
||||
### func [StandardExit](/main.go#L173)
|
||||
### func [StandardExit](/main.go#L179)
|
||||
|
||||
`func StandardExit()`
|
||||
|
||||
|
@ -252,7 +252,7 @@ You get a window
|
|||
|
||||
`func Start() *Node`
|
||||
|
||||
#### func [StartS](/main.go#L107)
|
||||
#### func [StartS](/main.go#L113)
|
||||
|
||||
`func StartS(name string) *Node`
|
||||
|
||||
|
|
|
@ -46,16 +46,16 @@ func (n *Node) DebugTab(title string) *Node {
|
|||
cb.Set(false)
|
||||
|
||||
gog.NewButton("Debug Flags", func () {
|
||||
newN.DebugFlags(makeTabs)
|
||||
bugWin.DebugFlags(makeTabs)
|
||||
})
|
||||
gog.NewButton("Debug Widgets", func () {
|
||||
DebugWidgetWindow(newN)
|
||||
})
|
||||
gog.NewButton("GO Language Internals", func () {
|
||||
newN.DebugGolangWindow(makeTabs)
|
||||
bugWin.DebugGolangWindow(makeTabs)
|
||||
})
|
||||
gog.NewButton("GO Channels debug", func () {
|
||||
newN.DebugGoChannels(makeTabs)
|
||||
bugWin.DebugGoChannels(makeTabs)
|
||||
})
|
||||
|
||||
gog.NewLabel("Force Quit:")
|
||||
|
|
6
main.go
6
main.go
|
@ -104,6 +104,12 @@ func Start() *Node {
|
|||
return Config.rootNode
|
||||
}
|
||||
|
||||
func (n *Node) LoadPlugin(name string) bool {
|
||||
StartS(name)
|
||||
Redraw(name)
|
||||
return true
|
||||
}
|
||||
|
||||
func StartS(name string) *Node {
|
||||
log(logInfo, "Start() Main(f) for name =", name)
|
||||
if (LoadToolkit(name) == false) {
|
||||
|
|
Loading…
Reference in New Issue