diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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() }) } |
