diff --git a/Source/Dialogs/DownloadDialog.cs b/Source/Dialogs/DownloadDialog.cs index 5cbecc5..5562907 100644 --- a/Source/Dialogs/DownloadDialog.cs +++ b/Source/Dialogs/DownloadDialog.cs @@ -87,10 +87,10 @@ private async Task DownloadFile(string url, string targetPath) if (response.Headers["Location"] != null) { finalURL = response.Headers["Location"]; - if (response.ContentLength > 0) - { - downloadProgress.Maximum = (int)response.ContentLength; - } + } + if (response.ContentLength > 0) + { + downloadProgress.Maximum = (int)response.ContentLength; } } } while (response.Headers["Location"] != null); diff --git a/Source/Program.cs b/Source/Program.cs index c5b995d..96f2b37 100644 --- a/Source/Program.cs +++ b/Source/Program.cs @@ -143,31 +143,31 @@ private async static Task CheckForUpdates() /// [STAThread] static void Main(string[] args) - { - System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => - { - if (sslPolicyErrors == System.Net.Security.SslPolicyErrors.None) - { - return true; - } - else - { - if (System.Windows.Forms.MessageBox.Show($"The following server certificate is not valid:\n\n{certificate.ToString()}\n\nAccept?", - "Certificate Validation", - System.Windows.Forms.MessageBoxButtons.YesNo, - System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) - return true; - else - return false; - }; - }; - - System.Net.ServicePointManager.Expect100Continue = true; - System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12; - System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Ssl3; - - Registry.Initialize(); - Settings.LoadSettings(); + { + System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => + { + if (sslPolicyErrors == System.Net.Security.SslPolicyErrors.None) + { + return true; + } + else + { + if (System.Windows.Forms.MessageBox.Show($"The following server certificate is not valid:\n\n{certificate.ToString()}\n\nAccept?", + "Certificate Validation", + System.Windows.Forms.MessageBoxButtons.YesNo, + System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + return true; + else + return false; + }; + }; + + System.Net.ServicePointManager.Expect100Continue = true; + System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12; + System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Ssl3; + + Registry.Initialize(); + Settings.LoadSettings(); bool registerOnly = false; string openURL = null; diff --git a/Source/Properties/AssemblyInfo.cs b/Source/Properties/AssemblyInfo.cs index df314e3..8724c75 100644 --- a/Source/Properties/AssemblyInfo.cs +++ b/Source/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.4.0.0")] -[assembly: AssemblyFileVersion("1.4.0.0")] +[assembly: AssemblyVersion("1.4.1.0")] +[assembly: AssemblyFileVersion("1.4.1.0")]