summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 21:02:41 -0600
committerJeff Carr <[email protected]>2024-01-06 21:02:41 -0600
commit5e9f1591cab5602ac9d9f6e6a24f83ba5dc86126 (patch)
treefc9530a4361b411dac492061f14cd749cc706621 /gui.go
parentde051d06f33a401231baf1651727d31a18261052 (diff)
update worked correctly for the first time
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui.go b/gui.go
index b01df07..1a4dab9 100644
--- a/gui.go
+++ b/gui.go
@@ -193,7 +193,10 @@ func mainWindow(title string) {
me.digStatus.window.Toggle()
})
gr.NewButton("cloudflare wit.com", func () {
- cloudflare.CreateRR(me.myGui, "wit.com", "3777302ac4a78cd7fa4f6d3f72086d06")
+ if me.witcom != nil {
+ me.witcom.Toggle()
+ }
+ me.witcom = cloudflare.CreateRR(me.myGui, "wit.com", "3777302ac4a78cd7fa4f6d3f72086d06")
})
gr.NewButton("Debug", func () {
me.debug.Toggle()