summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'update.go')
-rw-r--r--update.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/update.go b/update.go
index 429920c..892ebfb 100644
--- a/update.go
+++ b/update.go
@@ -17,8 +17,8 @@ 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.Set()")
- rs.path.Set(rs.repopath)
+ log.Warn("path.SetText()")
+ rs.path.SetText(rs.repopath)
log.Warn("getCurrentBranchName()")
rs.getCurrentBranchName()
log.Warn("set window Title()")
@@ -32,15 +32,15 @@ func (rs *RepoStatus) Update() {
log.Warn("CheckDirty()")
rs.CheckDirty()
- if rs.dirtyLabel.Get() != "no" {
- log.Warn("dirty label != no. actual value:", rs.dirtyLabel.Get())
+ if rs.dirtyLabel.String() != "no" {
+ log.Warn("dirty label != no. actual value:", rs.dirtyLabel.String())
rs.DisableEverything()
return
}
- master := rs.masterDrop.Get()
- devel := rs.develDrop.Get()
- user := rs.userDrop.Get()
+ master := rs.masterDrop.String()
+ devel := rs.develDrop.String()
+ user := rs.userDrop.String()
// rs.CheckDirty() this runs
log.Log(WARN, "")
@@ -65,14 +65,14 @@ func (rs *RepoStatus) setSpeed(duration time.Duration) {
log.Log(WARN, "can't actually warn")
return
}
- rs.speedActual.Set(s)
+ rs.speedActual.SetText(s)
if (duration > 500 * time.Millisecond ) {
- rs.speed.Set("SLOW")
+ rs.speed.SetText("SLOW")
} else if (duration > 100 * time.Millisecond ) {
- rs.speed.Set("OK")
+ rs.speed.SetText("OK")
} else {
- rs.speed.Set("FAST")
+ rs.speed.SetText("FAST")
}
}