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:
@@ -23,5 +23,5 @@ func (widget *Widget) display(clocks []Clock) {
|
||||
)
|
||||
}
|
||||
|
||||
fmt.Fprintf(widget.View, "%s", str)
|
||||
widget.View.SetText(fmt.Sprintf("%s", str))
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ func (widget *Widget) Refresh() {
|
||||
}
|
||||
|
||||
widget.UpdateRefreshedAt()
|
||||
widget.View.Clear()
|
||||
widget.display(widget.clockColl.Sorted())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user