diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 18:44:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 18:44:29 -0600 |
| commit | d7d2e0ba1b00388579668034cf355c1dad22f9e1 (patch) | |
| tree | 972c12733d00c2e820ba099520525c4a63fc76a4 | |
| parent | 1dd4a2d97966196dd1ed3a762bd501c0b3288d61 (diff) | |
cleaning stuffv0.22.73
| -rw-r--r-- | windowForgePatchsets.go | 22 |
1 files 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() } |
