summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-05 09:06:59 -0600
committerJeff Carr <[email protected]>2024-01-05 09:06:59 -0600
commit6f1555f9fcaa299963eba4f82a5f98deb868cfc2 (patch)
tree4ec19a9c3137c37d40b8f70be8e8f1388bd45cbe
parentd6215ee07ba83e9c759b0a4e5168474c3f039959 (diff)
use gadgets.BasicWindow()
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile2
-rw-r--r--argv.go4
-rw-r--r--main.go2
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