summaryrefslogtreecommitdiff
path: root/windowPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 01:46:47 -0500
committerJeff Carr <[email protected]>2025-10-07 01:46:47 -0500
commit217499af46a060341d7e91ee208182531a796a94 (patch)
tree45be1009c07539a76d3b6c8c429b49e165cf790a /windowPatches.go
parentf6e7c333effa3d599a4b6d973dd919023acd9252 (diff)
attempt to ressurrect a patches table in the GUI
Diffstat (limited to 'windowPatches.go')
-rw-r--r--windowPatches.go17
1 files changed, 11 insertions, 6 deletions
diff --git a/windowPatches.go b/windowPatches.go
index 40f96de..fa1d299 100644
--- a/windowPatches.go
+++ b/windowPatches.go
@@ -68,13 +68,18 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
log.Info("ALL PATCHES WORKED! count =", count)
})
+ grid.NewButton("draw table", func() {
+ if dwin.TB == nil {
+ log.Info("dwin.TB is nil")
+ dwin.doPatchesTable(patches)
+ return
+ }
+ dwin.TB.MakeTable()
+ dwin.TB.ShowTable()
+ })
+
// make a box at the bottom of the window for the protobuf table
dwin.box = dwin.win.Bottom.Box().SetProgName("TBOX")
-
- if patches != nil {
- dwin.doPatchesTable(patches)
- }
-
return dwin
}
@@ -103,7 +108,7 @@ func (dwin *stdPatchTableWin) doPatchesTable(currentPatches *forgepb.Patches) {
}
// display the protobuf
- dwin.TB = AddPatchesPB(dwin.box, currentPatches)
+ dwin.TB = currentPatches.MakeTable()
f := func(p *forgepb.Patch) {
log.Info("do something with patch", p.Filename)
}