2
0
deadmoon 4 жил өмнө
parent
commit
7b87f94f90

+ 4 - 3
Optimizer/MainForm.cs

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

BIN
experiments/Optimizer-test.exe