summaryrefslogtreecommitdiff
path: root/doGui.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 /doGui.go
parentf6e7c333effa3d599a4b6d973dd919023acd9252 (diff)
attempt to ressurrect a patches table in the GUI
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go21
1 files changed, 5 insertions, 16 deletions
diff --git a/doGui.go b/doGui.go
index 6906812..e83b8b8 100644
--- a/doGui.go
+++ b/doGui.go
@@ -90,22 +90,11 @@ func doGui() {
patchButton.SetLabel("not safe yet")
return
}
- // patchesWin = makePatchesWin(me.forge.Patchsets)
- notdone := new(forgepb.Patches)
-
- all := me.forge.Patchsets.All()
- for all.Scan() {
- pset := all.Next()
- if pset.State == "DONE" {
- // skip old patchsets
- continue
- }
- AddAllPatches(notdone, pset, false)
- // AddNotDonePatches(notdone, pset, false)
- }
- notdone.PrintTable()
-
- patchesWin = makePatchesWin(notdone)
+ curpatches := forgepb.NewPatches()
+ curpatches.Filename = "/tmp/curpatches.pb"
+ curpatches.Load()
+ curpatches.Save()
+ patchesWin = makePatchesWin(curpatches)
})
var pubWin *gadgets.GenericWindow