preparing to make a repowindow package
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
df0ff5af1c
commit
0bc14b6145
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue