summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 03:59:08 -0600
committerJeff Carr <[email protected]>2025-02-15 07:28:34 -0600
commit25bc18c55f58949e5765b73af8b61ede8ac5eb12 (patch)
tree820ce661f2a7c9263a108c8a17c8b52734036fe4 /doGui.go
parent940d259bbf34dd643ac8a555dc003804fd036c43 (diff)
start a table window
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/doGui.go b/doGui.go
index 6719661..91b79a5 100644
--- a/doGui.go
+++ b/doGui.go
@@ -49,14 +49,21 @@ func drawWindow(win *gadgets.BasicWindow) {
group1 := vbox.NewGroup("Zookeeper Settings")
grid := group1.NewGrid("buildOptions", 0, 0)
- // select the branch you want to test, build and develop against
- // this lets you select your user branch, but, when you are happy
- // you can merge everything into the devel branch and make sure it actually
- // works. Then, when that is good, merge and version everything in master
+ var tbwin *tableWindow
grid.NewButton("show zoo", func() {
win.Disable()
defer win.Enable()
+ if tbwin != nil {
+ if tbwin.Hidden() {
+ tbwin.Show()
+ } else {
+ tbwin.Hide()
+ }
+ return
+ }
+
log.Info("show zoo here")
+ tbwin = makeTableWindow()
})
}