diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 19:24:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 19:24:37 -0500 |
| commit | cb2c88d8c12a58f4e791dffeaba0a685d63bbc79 (patch) | |
| tree | 348a812e153d152f19502f99bf402b9233f6c267 /debug.go | |
| parent | 28b7470328707da8d9701c4af1493f4730bcd1f9 (diff) | |
getting pretty clean at this point
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -71,15 +71,12 @@ func SetFlag (s string, b bool) { log(debugGui, "Can't set unknown flag", s) } - var a toolkit.Action + a := new(toolkit.Action) a.ActionType = toolkit.Set a.WidgetType = toolkit.Flag a.S = s a.B = b - // a.Widget = &newNode.widget - // a.Where = &n.widget - // action(&a) - newaction(&a, nil, nil) + sendAction(a) } func ShowDebugValues() { @@ -118,10 +115,10 @@ func (n *Node) Dump() { } Indent(b, "NODE DUMP END") - var a toolkit.Action + a := new(toolkit.Action) a.ActionType = toolkit.Dump a.WidgetId = n.id - newaction(&a, activeWidget, nil) + sendAction(a) } func Indent(b bool, a ...interface{}) { |
