summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 23:50:11 -0600
committerJeff Carr <[email protected]>2025-03-03 23:50:11 -0600
commit6127fa1cbb8a68f0b125f50b760822828c7f20e5 (patch)
tree0d636d5b50a84a8969bc4e854a6532680c701726 /structs.go
parent54bbe72aa8fe60c21e3bca46a5455a2965859c5b (diff)
try out sync.Once
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index dd9ed14..4e72e80 100644
--- a/structs.go
+++ b/structs.go
@@ -138,6 +138,7 @@ type dropdown struct {
// settings for the dropdown window
type internalTK struct {
+ once sync.Once // for init
tk *guiWidget // where to show STDOUT
callerTK *guiWidget // which widget called the dropdown menu
wId int // the widget id to use