From a83ca26ac3380be410cd8aaceef7b6a2c7d2701a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 14 Feb 2025 18:11:19 -0600 Subject: switch to treeInit --- structs.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 5331219..a2f03f1 100644 --- a/structs.go +++ b/structs.go @@ -1,6 +1,8 @@ package main import ( + "sync" + "go.wit.com/toolkits/tree" ) @@ -13,6 +15,8 @@ type guiWidget struct { val map[string]int } +var initOnce sync.Once // run initPlugin() only once + // It's probably a terrible idea to call this 'me' var me config -- cgit v1.2.3