From f0fae0031154bf25d1a817ea451e7a6adf290901 Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 3 Nov 2016 20:10:25 +0100 Subject: [PATCH] Checking the default check interval from 1 (oops) to 14 days. [skip ci] --- GreenshotPlugin/Core/CoreConfiguration.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 57de57088..e49fb491b 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -174,7 +174,7 @@ namespace GreenshotPlugin.Core { [IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.")] public List ExcludeDestinations { get; set; } - [IniProperty("UpdateCheckInterval", Description="How many days between every update check? (0=no checks)", DefaultValue="1")] + [IniProperty("UpdateCheckInterval", Description="How many days between every update check? (0=no checks)", DefaultValue="14")] public int UpdateCheckInterval { get; set; } [IniProperty("LastUpdateCheck", Description="Last update check")] public DateTime LastUpdateCheck { get; set; } @@ -426,6 +426,12 @@ namespace GreenshotPlugin.Core { OutputFileAutoReduceColors = false; } + // Fix for excessive feed checking + if (UpdateCheckInterval <= 7 && LastSaveWithVersion.StartsWith("1.2")) + { + UpdateCheckInterval = 14; + } + // Enable OneNote if upgrading from 1.1 if(ExcludeDestinations != null && ExcludeDestinations.Contains("OneNote")) { if(LastSaveWithVersion != null && LastSaveWithVersion.StartsWith("1.1")) {