add checkbox to hide RELEASED repos

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-11 19:10:18 -06:00
parent 2a46bd2c9e
commit 92da6ff177
2 changed files with 22 additions and 0 deletions

View File

@ -24,6 +24,12 @@ func showHideRepos() {
continue continue
} }
} }
if me.autoReleased.Checked() {
if repo.getGoSumStatus() == "RELEASED" {
repo.Hide()
continue
}
}
repo.Show() repo.Show()
} }
} }
@ -83,6 +89,21 @@ func globalDisplayOptions(box *gui.Node) {
} }
} }
me.autoReleased = group1.NewCheckbox("Hide RELEASED repos").SetChecked(false)
me.autoReleased.Custom = func() {
if me.autoReleased.Checked() {
for _, repo := range me.allrepos {
if repo.getGoSumStatus() == "RELEASED" {
repo.Hide()
}
}
} else {
for _, repo := range me.allrepos {
repo.Show()
}
}
}
me.ignoreWhitelist = group1.NewCheckbox("ignore whitelist (are you sure?)").SetChecked(false) me.ignoreWhitelist = group1.NewCheckbox("ignore whitelist (are you sure?)").SetChecked(false)
me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false) me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false)

View File

@ -28,6 +28,7 @@ type autoType struct {
// #### autotypist Global Display Options // #### autotypist Global Display Options
autoHidePerfect *gui.Node autoHidePerfect *gui.Node
autoHideReadOnly *gui.Node autoHideReadOnly *gui.Node
autoReleased *gui.Node
ignoreWhitelist *gui.Node ignoreWhitelist *gui.Node
// #### autotypist Global Build Options // #### autotypist Global Build Options