minor change

This commit is contained in:
Jeff Carr 2024-02-22 07:55:01 -06:00
parent ec63197c81
commit 303c603f36
3 changed files with 6 additions and 9 deletions

View File

@ -63,13 +63,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

@ -50,6 +50,10 @@ func main() {
// may exit here
handleCmdLine()
// setup the autoscan functions
me.repos.View.RegisterHideFunction(hideFunction)
me.repos.View.SetAutoScan(me.autoScanReposCB.Checked())
// processing is done. update the repo summary box
// me.summary.Update()

View File

@ -62,8 +62,6 @@ func makeRepoView() *repoWindow {
r.topbox.Append(showncount)
duration := r.View.MirrorScanDuration()
r.topbox.Append(duration)
r.View.RegisterHideFunction(hideFunction)
return r
}