From d7d2e0ba1b00388579668034cf355c1dad22f9e1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Feb 2025 18:44:29 -0600 Subject: cleaning stuff --- windowForgePatchsets.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/windowForgePatchsets.go b/windowForgePatchsets.go index d28333c..0e93588 100644 --- a/windowForgePatchsets.go +++ b/windowForgePatchsets.go @@ -166,6 +166,17 @@ func (r *patchesWindow) submitPatchesBox() { } func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) { + var win *patchWindow + r.psetgrid.NewButton("View", func() { + // has the window already been created? + if win != nil { + win.Toggle() + return + } + + win = makePatchWindow(pset) + win.Show() + }) r.psetgrid.NewLabel(pset.Name) r.psetgrid.NewLabel(pset.Comment) r.psetgrid.NewLabel(pset.GitAuthorName) @@ -180,17 +191,6 @@ func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) { r.psetgrid.NewLabel("Good") } - var win *patchWindow - r.psetgrid.NewButton("View", func() { - // has the window already been created? - if win != nil { - win.Toggle() - return - } - - win = makePatchWindow(pset) - win.Show() - }) r.psetgrid.NextRow() } -- cgit v1.2.3