summaryrefslogtreecommitdiff
path: root/windowForgePatchsets.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowForgePatchsets.go')
-rw-r--r--windowForgePatchsets.go22
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()
}