diff options
| author | Jeff Carr <[email protected]> | 2025-03-06 04:36:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-06 05:34:25 -0600 |
| commit | 8edebe18e163c8043be04f7dfe757683982c791f (patch) | |
| tree | 8a4452f502d1257e1fa4f00e5443cd333bebb9a7 /structs.go | |
| parent | f97e2a48c6330baea7e99dd5dc1e560c23e64494 (diff) | |
cleaner window code
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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() } |
