mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
RefreshedAt moved to the end of the refresh (because that makes more sense, doesn't it?)
This commit is contained in:
committed by
Chris Cummer
parent
d44933aba4
commit
84ecf296a5
@@ -37,10 +37,10 @@ func (widget *Widget) Refresh() {
|
||||
|
||||
events, _ := Fetch()
|
||||
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
fmt.Fprintf(widget.View, "%s", widget.contentFrom(events))
|
||||
|
||||
widget.RefreshedAt = time.Now()
|
||||
}
|
||||
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
@@ -207,5 +207,5 @@ func (widget *Widget) until(event *calendar.Event) string {
|
||||
untilStr = fmt.Sprintf("%dm", mins)
|
||||
}
|
||||
|
||||
return "[grey]" + untilStr + "[white]"
|
||||
return "[lightblue]" + untilStr + "[white]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user