summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-11-05 10:19:04 -0500
committerJeff Carr <[email protected]>2022-11-05 10:19:04 -0500
commit099efb6b24caf9eaad50d7386636a7ac23552bde (patch)
tree215685d7153e6d002c921d4f7ad2fa12d52fe323 /toolkit/andlabs/structs.go
parenta72d0ab2d0ff58704cc28993ea428b8c6c8825d7 (diff)
v0.4.2 more code cleanups and improvementsv0.4.2
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
Diffstat (limited to 'toolkit/andlabs/structs.go')
-rw-r--r--toolkit/andlabs/structs.go6
1 files changed, 4 insertions, 2 deletions
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
}