From 6127fa1cbb8a68f0b125f50b760822828c7f20e5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 23:50:11 -0600 Subject: try out sync.Once --- structs.go | 1 + 1 file changed, 1 insertion(+) (limited to 'structs.go') 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 -- cgit v1.2.3