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

Flexible 1on1 lookup (need to move this sort of thing into Config)

This commit is contained in:
Chris Cummer
2018-04-13 13:50:12 -07:00
committed by Chris Cummer
parent 8e3287ba5c
commit 3a3efbd59f
2 changed files with 7 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ type Widget struct {
func NewWidget() *Widget {
widget := Widget{
TextWidget: wtf.NewTextWidget(" JIRA ", "jira"),
TextWidget: wtf.NewTextWidget("JIRA", "jira"),
}
widget.addView()
@@ -47,10 +47,9 @@ func (widget *Widget) Refresh() {
widget.View.SetWrap(false)
widget.View.SetTitle(
fmt.Sprintf(
" %s: [green]%s[white] (%d)",
" %s: [green]%s[white] ",
widget.Name,
Config.UString("wtf.mods.jira.project"),
len(searchResult.Issues),
),
)
fmt.Fprintf(widget.View, "%s", widget.contentFrom(searchResult))