From 391a988e5f638f5c4b33b78f1f0ac9df7e670518 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 10 Mar 2025 14:57:33 -0500 Subject: working on more standard patch windows --- windowNewPatches.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'windowNewPatches.go') 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 -- cgit v1.2.3