try this. maybe
This commit is contained in:
parent
bb865d4a49
commit
0b6419d1a5
7
doGui.go
7
doGui.go
|
@ -54,6 +54,8 @@ func doGui() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func drawWindow(win *gadgets.BasicWindow) {
|
func drawWindow(win *gadgets.BasicWindow) {
|
||||||
|
var reposWin *repoWindow // this is the handle to the repo window
|
||||||
|
|
||||||
box := win.Box()
|
box := win.Box()
|
||||||
|
|
||||||
vbox := box.NewVerticalBox("BOX2")
|
vbox := box.NewVerticalBox("BOX2")
|
||||||
|
@ -94,6 +96,9 @@ func drawWindow(win *gadgets.BasicWindow) {
|
||||||
// you can merge everything into the devel branch and make sure it actually
|
// you can merge everything into the devel branch and make sure it actually
|
||||||
// works. Then, when that is good, merge and version everything in master
|
// works. Then, when that is good, merge and version everything in master
|
||||||
me.setBranchB = grid.NewButton("git checkout", func() {
|
me.setBranchB = grid.NewButton("git checkout", func() {
|
||||||
|
if reposWin != nil {
|
||||||
|
reposWin.Hide()
|
||||||
|
}
|
||||||
targetName := me.newBranch.String()
|
targetName := me.newBranch.String()
|
||||||
log.Warn("setting all branches to", targetName)
|
log.Warn("setting all branches to", targetName)
|
||||||
if targetName == "devel" {
|
if targetName == "devel" {
|
||||||
|
@ -123,8 +128,6 @@ func drawWindow(win *gadgets.BasicWindow) {
|
||||||
me.autoCreateBranches = grid.NewCheckbox("auto create branches").SetChecked(true)
|
me.autoCreateBranches = grid.NewCheckbox("auto create branches").SetChecked(true)
|
||||||
grid.NextRow()
|
grid.NextRow()
|
||||||
|
|
||||||
var reposWin *repoWindow
|
|
||||||
|
|
||||||
grid.NewButton("Repo Window", func() {
|
grid.NewButton("Repo Window", func() {
|
||||||
if reposWin != nil {
|
if reposWin != nil {
|
||||||
if reposWin.Hidden() {
|
if reposWin.Hidden() {
|
||||||
|
|
Loading…
Reference in New Issue