mirror of
https://github.com/taigrr/wtf
synced 2026-03-21 17:42:18 -07:00
WTF-897 Wrap exchange rate error messages for easier viewing
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -52,6 +52,7 @@ func (widget *Widget) Render() {
|
||||
|
||||
func (widget *Widget) content() (string, string, bool) {
|
||||
if widget.err != nil {
|
||||
widget.View.SetWrap(true)
|
||||
return widget.CommonSettings().Title, widget.err.Error(), false
|
||||
}
|
||||
|
||||
@@ -73,6 +74,7 @@ func (widget *Widget) content() (string, string, bool) {
|
||||
}
|
||||
}
|
||||
|
||||
widget.View.SetWrap(false)
|
||||
return widget.CommonSettings().Title, out, false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user