diff options
| author | Jeff Carr <[email protected]> | 2025-03-10 14:57:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-10 14:57:33 -0500 |
| commit | 391a988e5f638f5c4b33b78f1f0ac9df7e670518 (patch) | |
| tree | e826774ee14b1b165aa81bf116c90e80ccf9f0a5 /windowNewPatches.go | |
| parent | 18d9a7a099978174f81c016e90cdc9b6cd3162f2 (diff) | |
working on more standard patch windows
Diffstat (limited to 'windowNewPatches.go')
| -rw-r--r-- | windowNewPatches.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/windowNewPatches.go b/windowNewPatches.go index 3e7e435..2d9f29c 100644 --- a/windowNewPatches.go +++ b/windowNewPatches.go @@ -32,9 +32,10 @@ func (w *stdPatchTableWin) Toggle() { func makePatchesWin() *stdPatchTableWin { dwin := new(stdPatchTableWin) - dwin.win = gadgets.NewGenericWindow("forge current patchsets", "who is squirreling around?") + dwin.win = gadgets.NewGenericWindow("current patches", "patching options") dwin.win.Custom = func() { log.Info("test delete window here") + // dwin = nil } grid := dwin.win.Group.RawGrid() @@ -54,6 +55,13 @@ func (dwin *stdPatchTableWin) doPatchesTable(currentPatches *forgepb.Patches) { dwin.TB.Delete() dwin.TB = nil } + + // display the protobuf + dwin.TB = AddPatchesPB(dwin.box, currentPatches) + f := func(p *forgepb.Patch) { + log.Info("do something with patch", p.Filename) + } + dwin.TB.Custom(f) } // define what rows to have in the protobuf table |
