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

Merge branch '20190709-rename-binary-to-wtfutil'

This commit is contained in:
Chris Cummer
2019-07-10 08:09:19 -07:00
2 changed files with 12 additions and 4 deletions

View File

@@ -51,14 +51,18 @@ func (widget *Widget) Refresh() {
title := widget.CommonSettings().Title
title = title + widget.sinceDateForTitle()
var wrap bool
var content string
if err != nil {
wrap = true
content = err.Error()
} else {
wrap = false
content = widget.contentFrom(data)
}
widget.Redraw(title, content, false)
widget.Redraw(title, content, wrap)
}
/* -------------------- Unexported Functions -------------------- */