preparing to make a repowindow package

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-21 10:25:17 -06:00
parent df0ff5af1c
commit 0bc14b6145
2 changed files with 2 additions and 21 deletions

View File

@ -26,20 +26,6 @@ func hideFunction(r *repolist.Repo) {
r.Show()
}
func hideFunction2(repo *repolist.Repo) {
if me.autoHideReadOnly.Checked() {
if repo.Status.ReadOnly() {
return
}
}
if me.autoHidePerfect.Checked() {
if repo.IsPerfect() {
return
}
}
repo.Show()
}
func globalDisplayOptions(vbox *gui.Node) {
group1 := vbox.NewGroup("Global Display Options")
@ -60,13 +46,8 @@ func globalDisplayOptions(vbox *gui.Node) {
me.autoHidePerfect = group1.NewCheckbox("Hide Perfectly clean repos").SetChecked(true)
me.autoHidePerfect.Custom = func() {
if me.autoHidePerfect.Checked() {
me.repos.View.RegisterHideFunction(hideFunction)
me.repos.View.ScanRepositories()
} else {
me.repos.View.RegisterHideFunction(hideFunction2)
me.repos.View.ScanRepositories()
}
me.repos.View.RegisterHideFunction(hideFunction)
me.repos.View.ScanRepositories()
}
scanbox := group1.Box().Horizontal()
me.autoScanReposCB = scanbox.NewCheckbox("auto scan").SetChecked(true)

View File