1
0
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:
Tim Fitzgerald 2018-07-25 11:10:30 -07:00
parent 16313a73cb
commit 86c98a4658

View File

@ -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))
} }