cleaning stuff
This commit is contained in:
parent
1dd4a2d979
commit
d7d2e0ba1b
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue