1
0
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:
Hossein Mehrabi
2018-06-03 10:53:26 +04:30
parent 86e58ef367
commit 6443df092f
17 changed files with 38 additions and 49 deletions

View File

@@ -23,5 +23,5 @@ func (widget *Widget) display(clocks []Clock) {
)
}
fmt.Fprintf(widget.View, "%s", str)
widget.View.SetText(fmt.Sprintf("%s", str))
}

View File

@@ -34,7 +34,6 @@ func (widget *Widget) Refresh() {
}
widget.UpdateRefreshedAt()
widget.View.Clear()
widget.display(widget.clockColl.Sorted())
}