diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 68c7aef..ea5c41a 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -55,12 +55,6 @@ func globalDisplayOptions(vbox *gui.Node) { } os.Setenv("REPO_AUTO_SCAN", "true") - scanbox.NewButton("scan now", func() { - log.Info("re-scanning now") - i, s := me.repos.View.ScanRepositories() - log.Info("re-scanning done", i, "repos in", s) - }) - var tagsW *tagWindow group1.NewButton("git tags Window", func() { if tagsW == nil { diff --git a/repoview.go b/repoview.go index 5ad0272..09cc848 100644 --- a/repoview.go +++ b/repoview.go @@ -121,6 +121,11 @@ func (r *repoWindow) repoMenu() *gui.Node { } } }) + box2.NewButton("scan now", func() { + log.Info("re-scanning now") + i, s := me.repos.View.ScanRepositories() + log.Info("re-scanning done", i, "repos in", s) + }) return box2 }