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

Merge pull request #138 from jeangovil/fix-set-text

use widget.View.SetText to print text
This commit is contained in:
Chris Cummer
2018-06-03 07:42:17 -07:00
committed by GitHub
17 changed files with 38 additions and 49 deletions

View File

@@ -36,9 +36,8 @@ func (widget *Widget) Refresh() {
events, _ := Fetch()
widget.UpdateRefreshedAt()
widget.View.Clear()
fmt.Fprintf(widget.View, "%s", widget.contentFrom(events))
widget.View.SetText(fmt.Sprintf("%s", widget.contentFrom(events)))
}
/* -------------------- Unexported Functions -------------------- */