diff options
| -rw-r--r-- | addRepo.go | 1 | ||||
| -rw-r--r-- | common.go | 4 | ||||
| -rw-r--r-- | scan.go | 3 | ||||
| -rw-r--r-- | structs.go | 1 | ||||
| -rw-r--r-- | viewAutotypist.go | 1 | ||||
| -rw-r--r-- | viewGuiReleaser.go | 1 |
6 files changed, 10 insertions, 1 deletions
@@ -204,5 +204,6 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str grid.NextRow() r.allrepos[path] = newRepo + newRepo.NewScan() return nil, newRepo } @@ -156,3 +156,7 @@ func (r *Repo) DeleteTag(t *repostatus.Tag) bool { func (rl *RepoList) MirrorShownCount() *gui.Node { return gui.RawMirror(rl.shownCount) } + +func (rl *RepoList) MirrorScanDuration() *gui.Node { + return gui.RawMirror(rl.duration) +} @@ -42,6 +42,7 @@ func (r *RepoList) ScanRepositories() (int, string) { tmp := strconv.Itoa(shown) + " repos shown" log.Info("Setting shownCount to", tmp) me.shownCount.SetText(tmp) + me.duration.SetText(s) log.Info("Scanned", i, "repositories. todo: count/show changes in", s) return i, s @@ -54,7 +55,7 @@ func (r *Repo) NewScan() bool { } // run the repostatus update - r.Status.UpdateNew() + r.Status.Update() // print out whatever changes have happened if c, ok := r.Status.Changed(); ok { @@ -33,6 +33,7 @@ type RepoList struct { shownCount *gui.Node hideFunction func(*Repo) + duration *gui.Node } type Repo struct { diff --git a/viewAutotypist.go b/viewAutotypist.go index 4e1b071..b0a07eb 100644 --- a/viewAutotypist.go +++ b/viewAutotypist.go @@ -30,5 +30,6 @@ func AutotypistView(parent *gui.Node) *RepoList { me.blind = gui.RawBox() me.shownCount = me.blind.NewLabel("showCount") + me.duration = me.blind.NewLabel("duration") return me } diff --git a/viewGuiReleaser.go b/viewGuiReleaser.go index c8c1b02..572d470 100644 --- a/viewGuiReleaser.go +++ b/viewGuiReleaser.go @@ -29,5 +29,6 @@ func GuireleaserView(parent *gui.Node) *RepoList { me.blind = gui.RawBox() me.shownCount = me.blind.NewLabel("showCount") + me.duration = me.blind.NewLabel("duration") return me } |
