summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-06 04:36:07 -0600
committerJeff Carr <[email protected]>2025-03-06 05:34:25 -0600
commit8edebe18e163c8043be04f7dfe757683982c791f (patch)
tree8a4452f502d1257e1fa4f00e5443cd333bebb9a7 /structs.go
parentf97e2a48c6330baea7e99dd5dc1e560c23e64494 (diff)
cleaner window code
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 20b3a34..154af32 100644
--- a/structs.go
+++ b/structs.go
@@ -29,4 +29,22 @@ type zookeep struct {
machinesWin *gadgets.GenericWindow // the machines gui window
machinesBox *gui.Node // the machines gui parent box widget
machinesTB *zoopb.MachinesTable // the machines gui table buffer
+ zood *stdTableWin // the zood version window
+}
+
+type stdTableWin struct {
+ win *gadgets.GenericWindow // the machines gui window
+ box *gui.Node // the machines gui parent box widget
+ TB *zoopb.MachinesTable // the machines gui table buffer
+ update bool // if the window should be updated
+}
+
+func (w *stdTableWin) Toggle() {
+ if w == nil {
+ return
+ }
+ if w.win == nil {
+ return
+ }
+ w.win.Toggle()
}