summaryrefslogtreecommitdiff
path: root/globalDisplayOptions.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 14:20:37 -0600
committerJeff Carr <[email protected]>2024-02-17 14:20:37 -0600
commit15f334b2d2eab816b31e7f3a35e172e598bd5c19 (patch)
tree63bdc39c228adb4676ea4951b99bed49660bb75a /globalDisplayOptions.go
parentdfc28a04d637d9af6eef8bde9b65952b99b15465 (diff)
using repolist
Diffstat (limited to 'globalDisplayOptions.go')
-rw-r--r--globalDisplayOptions.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 5f60997..52c9ee3 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -52,10 +52,10 @@ func globalDisplayOptions(vbox *gui.Node) {
group1.NewButton("Show Repository Window", func() {
globalDisplaySetRepoState()
- if me.repoView.Hidden() {
- me.repoView.Show()
+ if me.repos.Hidden() {
+ me.repos.Show()
} else {
- me.repoView.Hide()
+ me.repos.Hide()
}
})
@@ -78,9 +78,12 @@ func globalDisplayOptions(vbox *gui.Node) {
}
scanbox := group1.Box().Horizontal()
me.autoScanReposCB = scanbox.NewCheckbox("auto scan").SetChecked(true)
+ me.autoScanReposCB.Custom = func() {
+ me.repos.View.SetAutoScan(me.autoScanReposCB.Checked())
+ }
scanbox.NewButton("scan now", func() {
log.Info("re-scanning repos now")
- repolist.ScanRepositories()
+ me.repos.View.ScanRepositories()
})
me.duration = scanbox.NewLabel("")