trying to test full repo list in 'gocui' toolkit

This commit is contained in:
Jeff Carr 2025-02-07 04:06:45 -06:00
parent bf66727ab7
commit 574bce8006
1 changed files with 28 additions and 0 deletions

View File

@ -109,9 +109,37 @@ func (r *repoWindow) repoMenu() *gui.Node {
box2 := hbox.Box().Horizontal()
all := box2.NewCheckbox("all")
all.Custom = func() {
log.Info("filter all =", all.Checked())
if all.Checked() {
loop := r.View.ReposSortByName()
for loop.Scan() {
// var repo *repolist.RepoRow
view := loop.Repo()
view.Show()
}
} else {
loop := r.View.ReposSortByName()
for loop.Scan() {
// var repo *repolist.RepoRow
view := loop.Repo()
view.Hide()
}
}
}
dirty := box2.NewCheckbox("dirty")
dirty.Custom = func() {
log.Info("filter dirty =", dirty.Checked())
loop := r.View.ReposSortByName()
for loop.Scan() {
// var repo *repolist.RepoRow
view := loop.Repo()
if view.Hidden() {
view.Show()
}
}
}
r.mergeDevel = box2.NewButton("merge to devel", func() {