From 85b9a036c289fe840e69e1852866f429b87cf63e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 20 Dec 2023 05:58:33 -0600 Subject: code moved to the cloudflare package use the cloudflare package add a protobuf attempt better change detection, but formatting is broken don't redraw widgets if they are not visible create new dns entry worked attempting a DNS RR create attempt a create API call use cloudflare recommended ENV vars turn off debugging Signed-off-by: Jeff Carr --- toolkit/andlabs/main.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'toolkit/andlabs/main.go') diff --git a/toolkit/andlabs/main.go b/toolkit/andlabs/main.go index e2d34a3..3430769 100644 --- a/toolkit/andlabs/main.go +++ b/toolkit/andlabs/main.go @@ -40,13 +40,18 @@ func init() { // log(debugToolkit, "init() Setting defaultBehavior = true") setDefaultBehavior(true) - // andlabs = make(map[int]*andlabsT) - pluginChan = make(chan toolkit.Action, 1) - log(logNow, "Init() start channel reciever") + // TODO: this is messed up. run ui.Main() from the first add? Initialize it with an empty thing first? + // fake out the OS toolkit by making a fake window. This is probably needed for macos & windows + // actually, this probably breaks the macos build go ui.Main(func() { demoUI() }) + + // andlabs = make(map[int]*andlabsT) + pluginChan = make(chan toolkit.Action, 1) + + log(logNow, "Init() start channel reciever") go catchActionChannel() log(logNow, "Init() END") } -- cgit v1.2.3