mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WIP
This commit is contained in:
committed by
Chris Cummer
parent
0472e8edec
commit
8d131907a2
@@ -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 -------------------- */
|
||||
|
||||
Reference in New Issue
Block a user