summaryrefslogtreecommitdiff
path: root/addText.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 00:13:31 -0500
committerJeff Carr <[email protected]>2025-09-04 00:13:31 -0500
commit33f801ed717dc3edb73c8619d6ea7b4694342437 (patch)
tree37e19ef041e2e85ecce8fde230faab681d5e3808 /addText.go
parent7c2c36f892e6c858954ce205e3136036962dfb33 (diff)
finally crapping panic() (maybe. notsure.)
Diffstat (limited to 'addText.go')
-rw-r--r--addText.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/addText.go b/addText.go
index 7b01066..f89c15a 100644
--- a/addText.go
+++ b/addText.go
@@ -18,19 +18,6 @@ func (n *Node) addText(newS string) {
}
n.strings[newS] = highest + 1 // TODO: use the int's for the order
n.newString = newS
- /*
- // time.Sleep(time.Duration(1000 * time.Nanosecond)) // doesn't work
- // maybe this stupid chipset is defective. TODO: try on different hardware
- // tried with go 1.21.4 debian sid
- mylock.Lock()
- n.mu.Lock()
- // time.Sleep(time.Duration(10 * time.Microsecond)) // doesn't work
- time.Sleep(time.Duration(100 * time.Microsecond)) // does work
- n.strings = append(n.strings, newS)
- n.mu.Unlock()
- mylock.Unlock()
- log.Log(INFO, "addText() has strings:", n.strings)
- */
// inform the toolkits
sendAction(n, widget.AddText)