mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
use widget.View.SetText to print
This commit is contained in:
@@ -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 -------------------- */
|
||||
|
||||
Reference in New Issue
Block a user