From 6f1555f9fcaa299963eba4f82a5f98deb868cfc2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 5 Jan 2024 09:06:59 -0600 Subject: [PATCH] use gadgets.BasicWindow() Signed-off-by: Jeff Carr --- Makefile | 2 +- argv.go | 4 ---- main.go | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 3453234..83c3903 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ run: build - ./control-panel-cloudflare --gui-debug + ./control-panel-cloudflare build-and-update: go get -v -u -x . diff --git a/argv.go b/argv.go index 994fd8e..6cedc8f 100644 --- a/argv.go +++ b/argv.go @@ -6,12 +6,8 @@ package main import ( arg "github.com/alexflint/go-arg" - "go.wit.com/gui/gui" - "go.wit.com/log" ) - func init() { arg.MustParse() - log.Bool(true, "INIT() args.ArgDebug =", gui.ArgDebug()) } diff --git a/main.go b/main.go index c8c8f79..bba3e90 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ func main() { // draw the cloudflare control panel window win := cloudflare.MakeCloudflareWindow(myGui) - win.SetText(title) + win.Title(title) win.Show() // This is just a optional goroutine to watch that things are alive