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:
@@ -44,10 +44,10 @@ func (widget *Widget) Refresh() {
|
||||
|
||||
if depErr != nil {
|
||||
widget.View.SetWrap(true)
|
||||
fmt.Fprintf(widget.View, "%s", depErr)
|
||||
widget.View.SetText(fmt.Sprintf("%s", depErr))
|
||||
} else {
|
||||
widget.View.SetWrap(false)
|
||||
fmt.Fprintf(widget.View, "%s", widget.contentFrom(deploys))
|
||||
widget.View.SetText(fmt.Sprintf("%s", widget.contentFrom(deploys)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string {
|
||||
|
||||
var revLen = 8
|
||||
if revLen > len(deploy.Revision) {
|
||||
revLen = len(deploy.Revision)
|
||||
revLen = len(deploy.Revision)
|
||||
}
|
||||
|
||||
str = str + fmt.Sprintf(
|
||||
|
||||
Reference in New Issue
Block a user