diff options
Diffstat (limited to 'branchesBox.go')
| -rw-r--r-- | branchesBox.go | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/branchesBox.go b/branchesBox.go index 332f4ad..8849fb0 100644 --- a/branchesBox.go +++ b/branchesBox.go @@ -25,23 +25,36 @@ func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) { rs.currentVersion = gadgets.NewOneLiner(newgrid, "current version") // `progname:"CURRENTVERSION"` newgrid.NextRow() - rs.switchBranchB = newgrid.NewButton("Switch Branch", func() { // `progname:"SWITCH"` - }) + /* + rs.switchBranchB = newgrid.NewButton("Switch Branch", func() { // `progname:"SWITCH"` + }) - rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"` - newgrid.NextRow() + rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"` + newgrid.NextRow() - rs.showBranchesButton = newgrid.NewButton("find user and devel", func() { - log.Info("redo this") - }) - newgrid.NextRow() + rs.showBranchesButton = newgrid.NewButton("find user and devel", func() { + log.Info("redo this") + }) + newgrid.NextRow() - rs.checkBranchesButton = newgrid.NewButton("CheckBranches()", func() { - log.Info("redo this") - }) - newgrid.NextRow() + rs.checkBranchesButton = newgrid.NewButton("CheckBranches()", func() { + log.Info("redo this") + }) + newgrid.NextRow() + + newgrid.NewButton("Revert master to devel", func() { + log.Info("redo this") + }) + */ - newgrid.NewButton("Revert master to devel", func() { + var win *repoBranchesWindow + newgrid.NewButton("Branches Window", func() { + if win != nil { + win.Toggle() + return + } log.Info("redo this") + win = MakeRepoBranchesWindow(rs.pb) + win.Show() }) } |
