From 099efb6b24caf9eaad50d7386636a7ac23552bde Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 5 Nov 2022 10:19:04 -0500 Subject: v0.4.2 more code cleanups and improvements Add command line argv handling using go-arg make hello world dumb stupid simple again more swtiching to common code move debugging options to support go-args more debugging output cleanup more debugging cleanups fix null pointer crash --- toolkit/andlabs/structs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'toolkit/andlabs/structs.go') diff --git a/toolkit/andlabs/structs.go b/toolkit/andlabs/structs.go index edad27e..90f9409 100644 --- a/toolkit/andlabs/structs.go +++ b/toolkit/andlabs/structs.go @@ -93,7 +93,7 @@ func forceDump(t *Toolkit) { } func (t *Toolkit) GetText() string { - forceDump(t) + t.Dump() if (DebugToolkit) { log.Println("gui.Toolkit.Text() Enter") scs := spew.ConfigState{MaxDepth: 1} @@ -110,7 +110,9 @@ func (t *Toolkit) GetText() string { log.Println("gui.Toolkit.Value() =", t.uiMultilineEntry.Text()) } text := t.uiMultilineEntry.Text() - log.Println("gui.Toolkit.Value() text =", text) + if (DebugToolkit) { + log.Println("gui.Toolkit.Value() text =", text) + } t.text = text return text } -- cgit v1.2.3