diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 12:36:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 12:36:52 -0600 |
| commit | e7257a919d75f63a27ef291f1e59a802a8a285cd (patch) | |
| tree | d9dac62fb4221e89601a1414f1b932174e87a14d /update.go | |
| parent | 7a283a1da6f91c560afda240d36236c9f515d020 (diff) | |
lots of things broken
Signed-off-by: Jeff Carr <[email protected]>
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") } } |
