Przeglądaj źródła

Hotfix 8.1. Important update.

deadmoon 4 lat temu
rodzic
commit
d94d3fa7e2
6 zmienionych plików z 16 dodań i 10 usunięć
  1. 3 0
      CHANGELOG.md
  2. 6 3
      Optimizer/MainForm.cs
  3. 1 1
      Optimizer/Program.cs
  4. 2 2
      Optimizer/Utilities.cs
  5. 3 3
      README.md
  6. 1 1
      version.txt

+ 3 - 0
CHANGELOG.md

@@ -2,6 +2,9 @@
 
 All notable changes to this project will be documented in this file.
 
+## [8.1] - 2021-05-31
+- Hotfix: Pinger sometimes not working
+
 ## [8.0] - 2021-05-30
 - New: Backup & restore Startup items
 - Improved: Performance tweaks

+ 6 - 3
Optimizer/MainForm.cs

@@ -388,6 +388,9 @@ namespace Optimizer
             // EXPERIMENTAL message
             lblLab.Visible = Program.EXPERIMENTAL_BUILD;
 
+            txtOS.Text = "Microsoft " + Utilities.GetOS();
+            txtBitness.Text = Utilities.GetBitness();
+
             if (Utilities.CurrentWindowsVersion == WindowsVersion.Unsupported)
             {
                 tabCollection.TabPages.Remove(universalTab);
@@ -437,9 +440,6 @@ namespace Optimizer
             txtVersion.Text = "Version: " + Program.GetCurrentVersionTostring();
             Program.MainForm = this;
 
-            txtOS.Text = "Microsoft " + Utilities.GetOS();
-            txtBitness.Text = Utilities.GetBitness();
-
             if (string.IsNullOrEmpty(Options.CurrentOptions.AppsFolder))
             {
                 txtDownloadFolder.Text = Path.Combine(Application.StartupPath, "Optimizer Downloads");
@@ -2353,6 +2353,9 @@ namespace Optimizer
 
                 for (int i = 0; i < 9; i++)
                 {
+                    // wait before each pinging
+                    System.Threading.Thread.Sleep(700);
+
                     tmpReply = Utilities.PingHost(txtPingInput.Text);
 
                     if (tmpReply.Address == null)

+ 1 - 1
Optimizer/Program.cs

@@ -13,7 +13,7 @@ namespace Optimizer
         // Enter current version here
 
         internal readonly static float Major = 8;
-        internal readonly static float Minor = 0;
+        internal readonly static float Minor = 1;
 
         internal readonly static bool EXPERIMENTAL_BUILD = false;
 

+ 2 - 2
Optimizer/Utilities.cs

@@ -96,7 +96,7 @@ namespace Optimizer
                 {
                     CurrentWindowsVersion = WindowsVersion.Windows8;
                 }
-                if (os.Contains("Windows Server 2016"))
+                if (os.Contains("Windows Server 2016") || os.Contains("Windows Server 2019"))
                 {
                     CurrentWindowsVersion = WindowsVersion.Windows10;
                 }
@@ -212,7 +212,7 @@ namespace Optimizer
 
         internal static void Reboot()
         {
-            Process.Start("shutdown", "/r /t 0");
+            Utilities.RunCommand("shutdown /r /t 0");
         }
 
         internal static void ActivateMainForm()

+ 3 - 3
README.md

@@ -54,6 +54,6 @@ https://github.com/hellzerg/optimizer/blob/master/LEGACY.md
 
 ## Details: ##
 
-* Latest version: 8.0
-* Released: May 30, 2021
-* SHA256: 5067D78B430708A45601CD4DC3618C645BECF99CF442A79A8BC4033D6E88D07A
+* Latest version: 8.1
+* Released: May 31, 2021
+* SHA256: F507A153FBBD8992C0E8AE84AD1E7A05E05EA7A0150D858566ADCC5C2B2F2B91

+ 1 - 1
version.txt

@@ -1 +1 @@
-8.0
+8.1