From 217499af46a060341d7e91ee208182531a796a94 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 01:46:47 -0500 Subject: attempt to ressurrect a patches table in the GUI --- doGui.go | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'doGui.go') 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 -- cgit v1.2.3