From bd92626107bdb4c1ea41484c37a142471fdbd735 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 13 Nov 2024 18:10:30 -0600 Subject: [PATCH] move button --- globalDisplayOptions.go | 6 ------ repoview.go | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) 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 }