mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Checking the default check interval from 1 (oops) to 14 days. [skip ci]
This commit is contained in:
parent
6cdf1adf94
commit
f0fae00311
1 changed files with 7 additions and 1 deletions
|
@ -174,7 +174,7 @@ namespace GreenshotPlugin.Core {
|
||||||
[IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.")]
|
[IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.")]
|
||||||
public List<string> ExcludeDestinations { get; set; }
|
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; }
|
public int UpdateCheckInterval { get; set; }
|
||||||
[IniProperty("LastUpdateCheck", Description="Last update check")]
|
[IniProperty("LastUpdateCheck", Description="Last update check")]
|
||||||
public DateTime LastUpdateCheck { get; set; }
|
public DateTime LastUpdateCheck { get; set; }
|
||||||
|
@ -426,6 +426,12 @@ namespace GreenshotPlugin.Core {
|
||||||
OutputFileAutoReduceColors = false;
|
OutputFileAutoReduceColors = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix for excessive feed checking
|
||||||
|
if (UpdateCheckInterval <= 7 && LastSaveWithVersion.StartsWith("1.2"))
|
||||||
|
{
|
||||||
|
UpdateCheckInterval = 14;
|
||||||
|
}
|
||||||
|
|
||||||
// Enable OneNote if upgrading from 1.1
|
// Enable OneNote if upgrading from 1.1
|
||||||
if(ExcludeDestinations != null && ExcludeDestinations.Contains("OneNote")) {
|
if(ExcludeDestinations != null && ExcludeDestinations.Contains("OneNote")) {
|
||||||
if(LastSaveWithVersion != null && LastSaveWithVersion.StartsWith("1.1")) {
|
if(LastSaveWithVersion != null && LastSaveWithVersion.StartsWith("1.1")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue