diff --git a/doGui.go b/doGui.go index f5928f6..e42eb79 100644 --- a/doGui.go +++ b/doGui.go @@ -151,23 +151,13 @@ func drawWindow(win *gadgets.GenericWindow) { insertWin = makeReposWinNew() }) - /* - */ - var patchesWin *stdPatchTableWin - gridM.NewButton("Pending patches", func() { - /* - defer func() { - if r := recover(); r != nil { - log.Warn("PANIC ecovered in NewButton()", r) - } - }() - */ + gridM.NewButton("Your patches", func() { if patchesWin != nil { patchesWin.Toggle() return } - me.forge.GetPatches() + // me.forge.GetPatches() // loadUpstreamPatchsets() if me.psets == nil { log.Info("failed to download current patchsets") diff --git a/windowPatches.go b/windowPatches.go index 552d45b..d68d246 100644 --- a/windowPatches.go +++ b/windowPatches.go @@ -76,6 +76,13 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin { } dwin.doPatchesTable(notdone) }) + + grid.NewButton("Update", func() { + log.Info("TODO: run forge.GetPatches() here") + // me.forge.GetPatches() + // loadUpstreamPatchsets() + }) + grid.NewButton("Apply All", func() { var count int all := patches.SortByFilename()