summaryrefslogtreecommitdiff
path: root/windowZood.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-06 04:47:18 -0600
committerJeff Carr <[email protected]>2025-03-06 05:34:25 -0600
commit8c7f6c3c1be68c3ac350c4b611e08ed8b23bd3a8 (patch)
tree56c108c3ac2c218accbfed68f96be0941d743736 /windowZood.go
parent8edebe18e163c8043be04f7dfe757683982c791f (diff)
more gui buttons
Diffstat (limited to 'windowZood.go')
-rw-r--r--windowZood.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/windowZood.go b/windowZood.go
index 65304f7..3aeca05 100644
--- a/windowZood.go
+++ b/windowZood.go
@@ -19,10 +19,16 @@ func makeZoodWin() {
me.zood.win.Custom = func() {
log.Info("test delete window here")
}
- group := me.zood.win.Group
- group.NewButton("save machines.pb", func() {
+ grid := me.zood.win.Group.RawGrid()
+ grid.NewButton("save machines.pb", func() {
saveMachineState()
})
+ grid.NewCheckbox("hide active")
+ grid.NewButton("update", func() {
+ doMachinesUpgradeTable()
+ })
+
+ // make a box at the bottom of the window for the protobuf table
me.zood.box = me.zood.win.Bottom.Box().SetProgName("TBOX")
doMachinesUpgradeTable()
}
@@ -82,13 +88,13 @@ func findVersion(m *zoopb.Machine, pkgname string) string {
}
func saveMachineState() {
- now := zoopb.NewMachines()
+ cur := zoopb.NewMachines()
all := me.machines.SortByHostname()
for all.Scan() {
m := all.Next()
log.Info("have machine:", m.Hostname)
- now.Append(m)
+ cur.Append(m)
}
- // me.machines.ConfigSave()
+ cur.ConfigSave()
}