1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

RefreshedAt moved to the end of the refresh (because that makes more sense, doesn't it?)

This commit is contained in:
Chris Cummer
2018-04-13 16:14:57 -07:00
committed by Chris Cummer
parent d44933aba4
commit 84ecf296a5
12 changed files with 34 additions and 16 deletions

View File

@@ -38,7 +38,6 @@ func (widget *Widget) Refresh() {
prs, _ := client.PullRequests(Config.UString("wtf.mods.github.owner"), Config.UString("wtf.mods.github.repo"))
widget.View.SetTitle(fmt.Sprintf(" Github: %s ", widget.title()))
widget.RefreshedAt = time.Now()
str := " [red]Open Review Requests[white]\n"
str = str + widget.prsForReview(prs, Config.UString("wtf.mods.github.username"))
@@ -48,6 +47,8 @@ func (widget *Widget) Refresh() {
widget.View.Clear()
fmt.Fprintf(widget.View, str)
widget.RefreshedAt = time.Now()
}
/* -------------------- Unexported Functions -------------------- */