deadmoon 4 years ago
parent
commit
7b87f94f90
3 changed files with 5 additions and 4 deletions
  1. 4 3
      Optimizer/MainForm.cs
  2. 1 1
      Optimizer/Program.cs
  3. BIN
      experiments/Optimizer-test.exe

+ 4 - 3
Optimizer/MainForm.cs

@@ -4,6 +4,7 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Diagnostics;
 using System.Drawing;
+using System.Globalization;
 using System.IO;
 using System.Linq;
 using System.Net;
@@ -94,10 +95,10 @@ namespace Optimizer
                 MessageBox.Show(ex.Message, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
 
-            MessageBox.Show(latestVersion);
+            
             if (!string.IsNullOrEmpty(latestVersion))
             {
-                if (float.Parse(latestVersion) > Program.GetCurrentVersion())
+                if (float.Parse(latestVersion, CultureInfo.InvariantCulture) > Program.GetCurrentVersion())
                 {
                     // show UPDATE AVAILABLE on app launch
                     if (silentCheck)
@@ -452,7 +453,7 @@ namespace Optimizer
                 txtDownloadFolder.Text = Options.CurrentOptions.AppsFolder;
             }
 
-            if (!Program.EXPERIMENTAL_BUILD && Utilities.IsInternetAvailable()) CheckForUpdate(true);
+            if (Utilities.IsInternetAvailable()) CheckForUpdate(true);
 
             if (Program.EXPERIMENTAL_BUILD)
             {

+ 1 - 1
Optimizer/Program.cs

@@ -15,7 +15,7 @@ namespace Optimizer
         internal readonly static float Major = 7;
         internal readonly static float Minor = 6;
 
-        internal readonly static bool EXPERIMENTAL_BUILD = false;
+        internal readonly static bool EXPERIMENTAL_BUILD = true;
 
         internal static string GetCurrentVersionTostring()
         {

BIN
experiments/Optimizer-test.exe