diff --git a/modules/clocks/display.go b/modules/clocks/display.go index 9448aa06..58e46e52 100644 --- a/modules/clocks/display.go +++ b/modules/clocks/display.go @@ -27,5 +27,5 @@ func (widget *Widget) display(clocks []Clock, dateFormat string, timeFormat stri ) } - widget.View.SetText(str) + widget.Redraw(widget.CommonSettings.Title, str, false) } diff --git a/modules/textfile/widget.go b/modules/textfile/widget.go index 06beda1b..64d01e27 100644 --- a/modules/textfile/widget.go +++ b/modules/textfile/widget.go @@ -90,7 +90,7 @@ func (widget *Widget) display() { text = text + widget.plainText() } - widget.Redraw(title, text, false) + widget.Redraw(title, text, true) } func (widget *Widget) fileName() string { diff --git a/modules/twitter/widget.go b/modules/twitter/widget.go index 7f94caee..5ae8640f 100644 --- a/modules/twitter/widget.go +++ b/modules/twitter/widget.go @@ -88,7 +88,7 @@ func (widget *Widget) display() { str = str + widget.format(tweet) } - widget.Redraw(title, str, false) + widget.Redraw(title, str, true) } // If the tweet's Username is the same as the account we're watching, no diff --git a/modules/weatherservices/weather/display.go b/modules/weatherservices/weather/display.go index 059fbd0a..ba852095 100644 --- a/modules/weatherservices/weather/display.go +++ b/modules/weatherservices/weather/display.go @@ -29,7 +29,7 @@ func (widget *Widget) display() { if err != "" { content = err } else { - title = widget.title(cityData) + title = widget.buildTitle(cityData) _, _, width, _ := widget.View.GetRect() content = widget.settings.common.SigilStr(len(widget.Data), widget.Idx, width) + "\n" content = content + widget.description(cityData) + "\n\n" @@ -73,8 +73,6 @@ func (widget *Widget) temperatures(cityData *owm.CurrentWeatherData) string { return str } -func (widget *Widget) title(cityData *owm.CurrentWeatherData) string { - str := fmt.Sprintf("%s %s", widget.emojiFor(cityData), cityData.Name) - return str - // return widget.ContextualTitle(str) +func (widget *Widget) buildTitle(cityData *owm.CurrentWeatherData) string { + return fmt.Sprintf("%s %s", widget.emojiFor(cityData), cityData.Name) }