From 8dbf5a09097b7868e9218bf98716c57eac998a10 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 1 Mar 2023 11:35:36 -0600 Subject: lots cleaner code between the plugin Queue() around SetText is helping userspace crashing merge forceDump(bool) into Dump() debugging output configuration is pretty clean keep cutting down duplicate things --gui-verbose flag works make label "standard" code add debug.FreeOSMemory() move the GO language internals to display in the GUI update push to do tags and go to github.com/wit-go/ remove the other license file it might be confusing golang.org and github proper WidgetType added a Quit() button Signed-off-by: Jeff Carr --- toolkit/andlabs/log.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'toolkit/andlabs/log.go') diff --git a/toolkit/andlabs/log.go b/toolkit/andlabs/log.go index fff5ba8..98b4e54 100644 --- a/toolkit/andlabs/log.go +++ b/toolkit/andlabs/log.go @@ -98,9 +98,8 @@ func log(a ...any) { if (a == nil) { return } - var blah bool - if (reflect.TypeOf(a[0]) == reflect.TypeOf(blah)) { - // golog.Println("\t a[0] = bool") + var tbool bool + if (reflect.TypeOf(a[0]) == reflect.TypeOf(tbool)) { if (a[0] == false) { return } @@ -111,7 +110,9 @@ func log(a ...any) { // a = a[1:] a[0] = "WIT/GUI/Toolkit" if (debugToolkit) { - spew.Dump(a) + scs := spew.ConfigState{MaxDepth: 1} + scs.Dump(a) + // spew.Dump(a) } return } -- cgit v1.2.3