1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
This commit is contained in:
Chris Cummer
2018-04-11 11:35:43 -07:00
committed by Chris Cummer
parent 0472e8edec
commit 8d131907a2
5 changed files with 233 additions and 3 deletions

View File

@@ -33,11 +33,20 @@ func (widget *Widget) Refresh() {
return
}
issues, err := IssuesFor(Config.UString("wtf.mods.jira.username"))
widget.View.SetTitle(fmt.Sprintf(" %s ", widget.Name))
widget.RefreshedAt = time.Now()
widget.View.Clear()
fmt.Fprintf(widget.View, "%s", "jira")
if err != nil {
widget.View.SetWrap(true)
fmt.Fprintf(widget.View, "%v", err)
} else {
widget.View.SetWrap(false)
fmt.Fprintf(widget.View, "%v", issues)
}
}
/* -------------------- Unexported Functions -------------------- */