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

Fix broken gCal title

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer 2020-05-15 01:39:11 -07:00
parent cda15e841b
commit e43c37cc07

View File

@ -43,7 +43,7 @@ func (widget *Widget) content() (string, string, bool) {
timestamp = "" timestamp = ""
} }
title = fmt.Sprintf("[%s]%s", eventTitle := fmt.Sprintf("[%s]%s",
widget.titleColor(calEvent), widget.titleColor(calEvent),
widget.eventSummary(calEvent, calEvent.ConflictsWith(calEvents)), widget.eventSummary(calEvent, calEvent.ConflictsWith(calEvents)),
) )
@ -53,7 +53,7 @@ func (widget *Widget) content() (string, string, bool) {
widget.dayDivider(calEvent, prevEvent), widget.dayDivider(calEvent, prevEvent),
widget.responseIcon(calEvent), widget.responseIcon(calEvent),
timestamp, timestamp,
title, eventTitle,
) )
str += fmt.Sprintf("%s %s%s\n", str += fmt.Sprintf("%s %s%s\n",