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

Remove RefreshedAt from TextWidget

This attribute is used for absolutely nothing. It doesn't need to exist.
This commit is contained in:
Chris Cummer
2018-10-11 17:12:29 -04:00
parent 76f96ecb00
commit a48d15079a
41 changed files with 12 additions and 69 deletions

View File

@@ -27,7 +27,6 @@ func NewWidget(app *tview.Application) *Widget {
}
func (widget *Widget) Refresh() {
widget.UpdateRefreshedAt()
widget.prettyWeather()
widget.View.SetText(widget.result)

View File

@@ -73,7 +73,6 @@ func (widget *Widget) Refresh() {
widget.Data = widget.Fetch(wtf.ToInts(wtf.Config.UList("wtf.mods.weather.cityids", widget.defaultCityCodes())))
}
widget.UpdateRefreshedAt()
widget.display()
}