more gui cleanups
This commit is contained in:
parent
33a6037982
commit
76eb230ae8
10
doGui.go
10
doGui.go
|
@ -96,7 +96,7 @@ func globalBuildOptions(vbox *gui.Node) {
|
||||||
// this lets you select your user branch, but, when you are happy
|
// this lets you select your user branch, but, when you are happy
|
||||||
// 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("set current branches to:", func() {
|
me.setBranchB = grid.NewButton("git checkout", func() {
|
||||||
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" {
|
||||||
|
@ -116,14 +116,14 @@ func globalBuildOptions(vbox *gui.Node) {
|
||||||
log.Info("switching to user branches failed")
|
log.Info("switching to user branches failed")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
me.newBranch = grid.NewCombobox()
|
me.newBranch = grid.NewDropdown()
|
||||||
me.newBranch.AddText("master")
|
me.newBranch.AddText("master")
|
||||||
me.newBranch.AddText("devel")
|
me.newBranch.AddText("devel")
|
||||||
me.newBranch.AddText(usr.Username)
|
me.newBranch.AddText(usr.Username)
|
||||||
me.newBranch.SetText(usr.Username)
|
me.newBranch.SetText(usr.Username)
|
||||||
|
|
||||||
// checking this will automatically make the branches off of devel
|
// checking this will automatically make the branches off of devel
|
||||||
me.autoCreateBranches = grid.NewCheckbox("create if missing").SetChecked(true)
|
me.autoCreateBranches = grid.NewCheckbox("auto create branches").SetChecked(true)
|
||||||
grid.NextRow()
|
grid.NextRow()
|
||||||
|
|
||||||
var reposWin *repoWindow
|
var reposWin *repoWindow
|
||||||
|
@ -152,4 +152,8 @@ func globalBuildOptions(vbox *gui.Node) {
|
||||||
patchWin.initWindow()
|
patchWin.initWindow()
|
||||||
patchWin.Show()
|
patchWin.Show()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
grid.NewButton("forge ConfigSave()", func() {
|
||||||
|
me.forge.ConfigSave()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,9 +113,6 @@ func (r *repoWindow) repoMenu() *gui.Node {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
*/
|
*/
|
||||||
box2.NewButton("forge ConfigSave()", func() {
|
|
||||||
me.forge.ConfigSave()
|
|
||||||
})
|
|
||||||
/*
|
/*
|
||||||
box2.NewButton("Table()", func() {
|
box2.NewButton("Table()", func() {
|
||||||
me.found = new(gitpb.Repos)
|
me.found = new(gitpb.Repos)
|
||||||
|
|
Loading…
Reference in New Issue