From cb2c88d8c12a58f4e791dffeaba0a685d63bbc79 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 19:24:37 -0500 Subject: getting pretty clean at this point Signed-off-by: Jeff Carr --- debug.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'debug.go') diff --git a/debug.go b/debug.go index 2df06cc..955a246 100644 --- a/debug.go +++ b/debug.go @@ -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{}) { -- cgit v1.2.3