From b34c258a590994eff8e41a7d0be88212eae39636 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 29 Jun 2017 18:28:36 -0700 Subject: [PATCH] Fix another version comparison --- DS4Windows/DS4Forms/DS4Form.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 4087faf..4e8be2a 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -2083,8 +2083,8 @@ namespace DS4Windows LastChecked = DateTime.Now; FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); string version2 = fvi.FileVersion; - string newversion2 = File.ReadAllText(appdatapath + "\\version.txt"); - if (version2.Replace(',', '.').CompareTo(File.ReadAllText(appdatapath + "\\version.txt")) == -1)//CompareVersions(); + string newversion2 = File.ReadAllText(appdatapath + "\\version.txt").Trim(); + if (version2.Replace(',', '.').CompareTo(newversion2) == -1)//CompareVersions(); { if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2), Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)