add the hide readonly button

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-25 02:50:16 -06:00
parent 831b9c1885
commit a3fde8fe6d
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,15 @@ func globalDisplayOptions(box *gui.Node) {
*/
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
me.autoHidePerfect.Custom = func() {
if me.autoHideReadOnly.Checked() {
for _, repo := range me.allrepos {
if repo.status.ReadOnly() {
repo.Hide()
}
}
}
}
me.autoHidePerfect = group1.NewCheckbox("Hide Perfectly clean repos").SetChecked(false)
me.autoHidePerfect.Custom = func() {