From 090c4e716c68e2c682473f41bc674a6adc135550 Mon Sep 17 00:00:00 2001 From: Bryan Austin Date: Wed, 1 Aug 2018 12:10:29 -0700 Subject: [PATCH] Default new option to false, update documentation --- _site/content/posts/modules/gcal.md | 3 +++ gcal/display.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_site/content/posts/modules/gcal.md b/_site/content/posts/modules/gcal.md index 5dbfa014f..f88664813 100644 --- a/_site/content/posts/modules/gcal.md +++ b/_site/content/posts/modules/gcal.md @@ -122,3 +122,6 @@ Values: A positive integer, `0..n`. Your Google client secret JSON file.
Values: A string representing a file path to the JSON secret file. +`showDeclined`
+Whether or not to display events you've declined to attend.
+Values: `true`, or `false` diff --git a/gcal/display.go b/gcal/display.go index e7ccd8efb..97176de4a 100644 --- a/gcal/display.go +++ b/gcal/display.go @@ -44,7 +44,7 @@ func (widget *Widget) contentFrom(calEvents []*CalEvent) string { var str string var prevEvent *CalEvent - if !wtf.Config.UBool("wtf.mods.gcal.showDeclined", true) { + if !wtf.Config.UBool("wtf.mods.gcal.showDeclined", false) { calEvents = removeDeclined(calEvents) }