summaryrefslogtreecommitdiff
path: root/windowNewPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-10 14:57:33 -0500
committerJeff Carr <[email protected]>2025-03-10 14:57:33 -0500
commit391a988e5f638f5c4b33b78f1f0ac9df7e670518 (patch)
treee826774ee14b1b165aa81bf116c90e80ccf9f0a5 /windowNewPatches.go
parent18d9a7a099978174f81c016e90cdc9b6cd3162f2 (diff)
working on more standard patch windows
Diffstat (limited to 'windowNewPatches.go')
-rw-r--r--windowNewPatches.go10
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