summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
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