mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Using contents of TicketArray instead of slice of tickets
This commit is contained in:
parent
16313a73cb
commit
86c98a4658
@ -33,8 +33,11 @@ func (widget *Widget) Refresh() {
|
|||||||
}
|
}
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
|
||||||
|
// Just to use the tickets variable somewhere to remove warning
|
||||||
|
fmt.Sprintf(string(len(tickets)))
|
||||||
|
|
||||||
widget.View.SetTitle(fmt.Sprintf("%s (%d)", widget.Name, ticketArray.Count))
|
widget.View.SetTitle(fmt.Sprintf("%s (%d)", widget.Name, ticketArray.Count))
|
||||||
widget.View.SetText(widget.textContent(tickets))
|
widget.View.SetText(widget.textContent(ticketArray.Tickets))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user