diff options
Diffstat (limited to 'update.go')
| -rw-r--r-- | update.go | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -17,19 +17,12 @@ func (rs *RepoStatus) Update() { log.Log(WARN, "Update() START") duration := timeFunction(func() { // do things that are safe even if the git tree is dirty - log.Warn("path.SetText()") - rs.path.SetText(rs.repopath) - log.Warn("getCurrentBranchName()") + rs.path.SetValue(rs.repopath) rs.getCurrentBranchName() - log.Warn("set window Title()") rs.window.Title(rs.repopath + " GO repo Details") - log.Warn("getCurrentBranchVersion()") rs.getCurrentBranchVersion() - log.Warn("getLastTagVersion()") rs.getLastTagVersion() - log.Warn("populateTags()") rs.populateTags() - log.Warn("CheckDirty()") rs.CheckDirty() if rs.dirtyLabel.String() != "no" { @@ -67,14 +60,14 @@ func (rs *RepoStatus) setSpeed(duration time.Duration) { log.Log(WARN, "can't actually warn") return } - rs.speedActual.SetText(s) + rs.speedActual.SetValue(s) if duration > 500*time.Millisecond { - rs.speed.SetText("SLOW") + rs.speed.SetValue("SLOW") } else if duration > 100*time.Millisecond { - rs.speed.SetText("OK") + rs.speed.SetValue("OK") } else { - rs.speed.SetText("FAST") + rs.speed.SetValue("FAST") } } |
