compiles and runs

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-17 03:57:17 -06:00
parent fea46f4c0a
commit 6207a0fb60
3 changed files with 11 additions and 11 deletions

View File

@ -29,26 +29,26 @@ func globalBuildOptions(box *gui.Node) {
grid := groupvbox.NewGrid("buildOptions",2, 1) grid := groupvbox.NewGrid("buildOptions",2, 1)
me.mainBranch = gadgets.NewBasicCombobox(grid, "default main branch") me.mainBranch = gadgets.NewBasicCombobox(grid, "default main branch")
me.mainBranch.Add("guimain") me.mainBranch.AddText("guimain")
me.mainBranch.Add("gitea server default") me.mainBranch.AddText("gitea server default")
me.mainBranch.Disable() me.mainBranch.Disable()
me.develBranch = gadgets.NewBasicCombobox(grid, "default devel branch") me.develBranch = gadgets.NewBasicCombobox(grid, "default devel branch")
me.develBranch.Add("devel") me.develBranch.AddText("devel")
me.userBranch = gadgets.NewBasicCombobox(grid, "default user branch") me.userBranch = gadgets.NewBasicCombobox(grid, "default user branch")
me.userBranch.Add("jcarr") me.userBranch.AddText("jcarr")
// select the branch you want to test, build and develop against // select the branch you want to test, build and develop against
// 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
guiBranch := gadgets.NewBasicCombobox(grid, "Set Current Working Branch") guiBranch := gadgets.NewBasicCombobox(grid, "Set Current Working Branch")
guiBranch.Add("guimaster") guiBranch.AddText("guimaster")
guiBranch.Add("guidevel") guiBranch.AddText("guidevel")
guiBranch.Add("jcarr") guiBranch.AddText("jcarr")
guiBranch.Custom = func () { guiBranch.Custom = func () {
me.toMoveToBranch = guiBranch.Get() me.toMoveToBranch = guiBranch.String()
setCurrentBranch.Set("set all branches to " + me.toMoveToBranch) setCurrentBranch.Set("set all branches to " + me.toMoveToBranch)
me.mainBranch.Disable() me.mainBranch.Disable()
} }

View File

@ -19,7 +19,7 @@ func globalDisplayOptions(box *gui.Node) {
me.autoHidePerfect = groupvbox.NewCheckbox("Hide repos") me.autoHidePerfect = groupvbox.NewCheckbox("Hide repos")
me.autoHidePerfect.Custom = func() { me.autoHidePerfect.Custom = func() {
me.autoHidePerfect.SetText("Hide Perfectly clean repos") me.autoHidePerfect.SetText("Hide Perfectly clean repos")
if me.autoHidePerfect.GetBool() { if me.autoHidePerfect.Bool() {
log.Warn("Should hide here") log.Warn("Should hide here")
} else { } else {
log.Warn("Should show here") log.Warn("Should show here")
@ -33,7 +33,7 @@ func globalDisplayOptions(box *gui.Node) {
}) })
groupvbox.NewButton("show all", func () { groupvbox.NewButton("show all", func () {
for _, repo := range allrepos { for _, repo := range allrepos {
if repo.dirtyLabel.GetText() == "PERFECT" { if repo.dirtyLabel.String() == "PERFECT" {
if repo.hidden { if repo.hidden {
repo.show() repo.show()
} }
@ -64,7 +64,7 @@ func globalDisplayOptions(box *gui.Node) {
func hidePerfect() { func hidePerfect() {
for _, repo := range allrepos { for _, repo := range allrepos {
if repo.dirtyLabel.GetText() == "PERFECT" { if repo.dirtyLabel.String() == "PERFECT" {
if repo.hidden { if repo.hidden {
continue continue
} }

BIN
myrepos

Binary file not shown.