Checking the default check interval from 1 (oops) to 14 days. [skip ci]

This commit is contained in:
Robin 2016-11-03 20:10:25 +01:00
commit f0fae00311

View file

@ -174,7 +174,7 @@ namespace GreenshotPlugin.Core {
[IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.")]
public List<string> 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")) {