minor change
This commit is contained in:
parent
ec63197c81
commit
303c603f36
|
@ -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)
|
||||
|
|
4
main.go
4
main.go
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue