diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 12:24:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 12:24:19 -0600 |
| commit | 7a283a1da6f91c560afda240d36236c9f515d020 (patch) | |
| tree | 22dbff5ae880b7f44b58361dcd385fb9afc40314 /draw.go | |
| parent | 39da8e6810032c70abfccc5d265db108438651d2 (diff) | |
SetText()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -59,7 +59,7 @@ func (rs *RepoStatus) drawGitBranches() { rs.showBranchesButton = newgrid.NewButton("show branches", func() { all := rs.getBranches() i := len(all) - count.Set(strconv.Itoa(i) + " branches") + count.SetText(strconv.Itoa(i) + " branches") }) count = newgrid.NewLabel("") @@ -178,12 +178,12 @@ func (rs *RepoStatus) setTag() bool { newver := strconv.Itoa(newa) if newa < olda { log.Warn("new version bad", newver, "vs old version", lasttag, "newa =", newa, "olda =", olda) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } if newa > olda { log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) rs.minor.SetText("") rs.revision.SetText("") return true @@ -193,13 +193,13 @@ func (rs *RepoStatus) setTag() bool { newver = strconv.Itoa(newa) + "." + strconv.Itoa(newb) if newb < oldb { log.Warn("new version bad", newver, "vs old version", lasttag, "newb =", newb, "oldb =", oldb) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } if newb > oldb { log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) rs.revision.SetText("") return true } @@ -208,11 +208,11 @@ func (rs *RepoStatus) setTag() bool { newver = strconv.Itoa(newa) + "." + strconv.Itoa(newb) + "." + strconv.Itoa(newc) if newc <= oldc { log.Warn("new version bad", newver, "vs old version", lasttag) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) return true } |
