For 1.2 RC3 I modified the update check so that it first retrieves the last modified date of the project feed (HTTP HEAD method), if the date is newer than the last check than it will download the feed. This should reduce the amount of traffic on our website. [skip ci]

This commit is contained in:
RKrom 2014-11-14 10:45:45 +01:00
parent 380f581bbe
commit c6d6431a81
5 changed files with 51 additions and 2 deletions

View file

@ -410,8 +410,12 @@ namespace GreenshotPlugin.Core {
// CheckForUnstable = true;
if (string.IsNullOrEmpty(LastSaveWithVersion)) {
// Store version, this can be used later to fix settings after an update
LastSaveWithVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
try {
// Store version, this can be used later to fix settings after an update
LastSaveWithVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
} catch {
}
// Disable the AutoReduceColors as it causes issues with Mozzila applications and some others
OutputFileAutoReduceColors = false;
}