Browse Source

Hotfix update v13.9

deadmoon 2 years ago
parent
commit
36b4e28f04

+ 4 - 0
CHANGELOG.md

@@ -1,3 +1,7 @@
+## [13.9] - 2022-08-21
+- Hotfix: Help messages for each toggle now appears on a panel
+- Hotfix: Restarting from inside the app does not save settings
+
 ## [13.8] - 2022-08-20
 - New: Disable Hibernate in Universal
 - New: Disable NTFS timestamp in Universal

File diff suppressed because it is too large
+ 4426 - 4491
Optimizer/Forms/MainForm.Designer.cs


+ 0 - 11
Optimizer/Forms/MainForm.cs

@@ -4646,7 +4646,6 @@ namespace Optimizer
         private void picRestartNeeded_Click(object sender, EventArgs e)
         {
             Utilities.Reboot();
-            Environment.Exit(0);
         }
 
         private void ShowRestartNeeded()
@@ -4674,15 +4673,5 @@ namespace Optimizer
         {
             restartAndApply.Font = new Font(restartAndApply.Font, FontStyle.Underline);
         }
-
-        private void Scan()
-        {
-            
-        }
-        private void button1_Click(object sender, EventArgs e)
-        {
-            //Task t = new Task(Scan);
-            //t.Start();
-        }
     }
 }

+ 1 - 1
Optimizer/Forms/MainForm.resx

@@ -751,7 +751,7 @@ any application only by typing your desired keyword.</value>
         AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
         LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
         ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC0
-        GgAAAk1TRnQBSQFMAgEBCQEAAYgBCwGIAQsBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
+        GgAAAk1TRnQBSQFMAgEBCQEAAZgBCwGYAQsBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
         AwABYAMAAQEBAAEgBgABwP8A/wD/AP8A/wD/AP8A/wAeAANHAYB0//8AiQADRwGAdP//AIkAAyoBQANH
         AYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANH
         AYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGA/wD/AP8A

+ 9 - 7
Optimizer/Forms/SubForm.Designer.cs

@@ -36,19 +36,21 @@
             // 
             // txtInfo
             // 
+            this.txtInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.txtInfo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
             this.txtInfo.BorderStyle = System.Windows.Forms.BorderStyle.None;
             this.txtInfo.Cursor = System.Windows.Forms.Cursors.Arrow;
             this.txtInfo.DetectUrls = false;
-            this.txtInfo.Dock = System.Windows.Forms.DockStyle.Fill;
             this.txtInfo.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold);
             this.txtInfo.ForeColor = System.Drawing.Color.White;
-            this.txtInfo.Location = new System.Drawing.Point(0, 0);
+            this.txtInfo.Location = new System.Drawing.Point(11, 11);
             this.txtInfo.Name = "txtInfo";
             this.txtInfo.ReadOnly = true;
-            this.txtInfo.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
+            this.txtInfo.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
             this.txtInfo.ShortcutsEnabled = false;
-            this.txtInfo.Size = new System.Drawing.Size(391, 203);
+            this.txtInfo.Size = new System.Drawing.Size(369, 222);
             this.txtInfo.TabIndex = 0;
             this.txtInfo.Text = "";
             // 
@@ -60,7 +62,7 @@
             this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(393, 205);
+            this.panel1.Size = new System.Drawing.Size(393, 246);
             this.panel1.TabIndex = 1;
             // 
             // btnStart
@@ -75,7 +77,7 @@
             this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
             this.btnStart.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.btnStart.ForeColor = System.Drawing.Color.White;
-            this.btnStart.Location = new System.Drawing.Point(314, 162);
+            this.btnStart.Location = new System.Drawing.Point(314, 202);
             this.btnStart.Margin = new System.Windows.Forms.Padding(2);
             this.btnStart.Name = "btnStart";
             this.btnStart.Size = new System.Drawing.Size(67, 31);
@@ -92,7 +94,7 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
             this.CancelButton = this.btnStart;
-            this.ClientSize = new System.Drawing.Size(393, 205);
+            this.ClientSize = new System.Drawing.Size(393, 246);
             this.ControlBox = false;
             this.Controls.Add(this.panel1);
             this.DoubleBuffered = true;

+ 30 - 30
Optimizer/PingerHelper.cs

@@ -137,37 +137,37 @@ namespace Optimizer
             Utilities.RunCommand("ipconfig /flushdns");
         }
 
-        internal static string PortScan(string IP, int port)
-        {
-            IPAddress ipAddress = IPAddress.Parse(IP);
-            IPEndPoint endPoint = new IPEndPoint(ipAddress, port);
-            Socket sock = null;
-
-            try
-            {
-                sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
-                IAsyncResult result = sock.BeginConnect(endPoint, null, null);
-                bool success = result.AsyncWaitHandle.WaitOne(100, true);
-                if (sock.Connected)
-                {
-                    sock.EndConnect(result);
-                    return $"{port} - [✓]";
-                }
-                else
-                {
-                    return $"{port} - [×]";
-                }
+        //internal static string PortScan(string IP, int port)
+        //{
+        //    IPAddress ipAddress = IPAddress.Parse(IP);
+        //    IPEndPoint endPoint = new IPEndPoint(ipAddress, port);
+        //    Socket sock = null;
+
+        //    try
+        //    {
+        //        sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
+        //        IAsyncResult result = sock.BeginConnect(endPoint, null, null);
+        //        bool success = result.AsyncWaitHandle.WaitOne(100, true);
+        //        if (sock.Connected)
+        //        {
+        //            sock.EndConnect(result);
+        //            return $"{port} - [✓]";
+        //        }
+        //        else
+        //        {
+        //            return $"{port} - [×]";
+        //        }
 
                 
-            }
-            catch
-            {
-                return $"{port} - [×]";
-            }
-            finally
-            {
-                if (sock != null) sock.Close();
-            }
-        }
+        //    }
+        //    catch
+        //    {
+        //        return $"{port} - [×]";
+        //    }
+        //    finally
+        //    {
+        //        if (sock != null) sock.Close();
+        //    }
+        //}
     }
 }

+ 1 - 1
Optimizer/Program.cs

@@ -13,7 +13,7 @@ namespace Optimizer
         /* DO NOT LEAVE THEM EMPTY */
 
         internal readonly static float Major = 13;
-        internal readonly static float Minor = 8;
+        internal readonly static float Minor = 9;
 
         internal readonly static bool EXPERIMENTAL_BUILD = false;
 

+ 1 - 0
Optimizer/Utilities.cs

@@ -221,6 +221,7 @@ namespace Optimizer
 
         internal static void Reboot()
         {
+            Options.SaveSettings();
             Process.Start("shutdown /r /t 0");
         }
 

+ 4 - 4
README.md

@@ -3,7 +3,7 @@
 </p> 
 
 <p align="center">
-	<a href="https://github.com/hellzerg/optimizer/releases/download/13.8/Optimizer-13.8.exe" target="_blank">
+	<a href="https://github.com/hellzerg/optimizer/releases/download/13.9/Optimizer-13.9.exe" target="_blank">
 		<img src="https://raw.githubusercontent.com/hellzerg/optimizer/master/download-button.png">
 		<br>
 		<img src="https://raw.githubusercontent.com/hellzerg/optimizer/master/flags.png">
@@ -88,9 +88,9 @@ https://github.com/hellzerg/optimizer/blob/master/LEGACY.md
 
 ### #️ Details: ###
 
-* Latest version: 13.8
-* Released: August 20, 2022
-* SHA256: 26C2DC4074A5247C3D71488C47C146AE38111FE762EA5A3B07B5E8B193D4E8E2
+* Latest version: 13.9
+* Released: August 21, 2022
+* SHA256: BCC5F991262E73A55E11F34D45DD61073F1F196877CFBD37BDFF8029608CEE5F
 
 <hr>
 

+ 1 - 1
version.txt

@@ -1 +1 @@
-13.8
+13.9

Some files were not shown because too many files changed in this diff