Browse Source

Minor update to 7.6

deadmoon 4 years ago
parent
commit
d88e09cea8

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 
 All notable changes to this project will be documented in this file.
 All notable changes to this project will be documented in this file.
 
 
+## [7.6] - 2021-04-12
+- New: Show or hide help tips option
+- UI polishing
+
 ## [7.5] - 2021-04-12
 ## [7.5] - 2021-04-12
 - New: Hover on each switch to read the explanation
 - New: Hover on each switch to read the explanation
 - Improved: Disable Feature Updates
 - Improved: Disable Feature Updates

+ 2 - 2
Optimizer/ColoredControls/ColoredProgress.cs

@@ -1,6 +1,6 @@
-using System.Windows.Forms;
-using System.Drawing;
+using System.Drawing;
 using System.Drawing.Drawing2D;
 using System.Drawing.Drawing2D;
+using System.Windows.Forms;
 
 
 namespace Optimizer
 namespace Optimizer
 {
 {

File diff suppressed because it is too large
+ 5139 - 5122
Optimizer/MainForm.Designer.cs


+ 17 - 3
Optimizer/MainForm.cs

@@ -364,6 +364,10 @@ namespace Optimizer
             quickAccessToggle.Checked = Options.CurrentOptions.EnableTray;
             quickAccessToggle.Checked = Options.CurrentOptions.EnableTray;
             launcherIcon.Visible = Options.CurrentOptions.EnableTray;
             launcherIcon.Visible = Options.CurrentOptions.EnableTray;
 
 
+            // help tips
+            infoTip.Active = Options.CurrentOptions.ShowHelp;
+            helpTipsToggle.Checked = Options.CurrentOptions.ShowHelp;
+
             // fix SSL/TLS error when contacting internet
             // fix SSL/TLS error when contacting internet
             ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
             ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
 
 
@@ -634,7 +638,7 @@ namespace Optimizer
 
 
         private void Main_Load(object sender, EventArgs e)
         private void Main_Load(object sender, EventArgs e)
         {
         {
-          
+
         }
         }
 
 
         private void GetDesktopItems()
         private void GetDesktopItems()
@@ -2288,7 +2292,9 @@ namespace Optimizer
 
 
         private void l2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
         private void l2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
         {
         {
-            Process.Start("https://github.com/hellzerg/optimizer");
+            AboutForm f = new AboutForm();
+            f.ShowDialog(this);
+            //Process.Start("https://github.com/hellzerg/optimizer");
         }
         }
 
 
         private void btnViewLog_Click(object sender, EventArgs e)
         private void btnViewLog_Click(object sender, EventArgs e)
@@ -2536,7 +2542,15 @@ namespace Optimizer
                 infoText = infoText.Replace(x, string.Empty);
                 infoText = infoText.Replace(x, string.Empty);
             }
             }
 
 
-            infoBaloon.ToolTipTitle = "What is " + infoText + "?";
+            infoTip.ToolTipTitle = "What is " + infoText + "?";
+        }
+
+        private void helpTipsToggle_CheckedChanged(object sender, EventArgs e)
+        {
+            Options.CurrentOptions.ShowHelp = helpTipsToggle.Checked;
+            Options.SaveSettings();
+
+            infoTip.Active = helpTipsToggle.Checked;
         }
         }
     }
     }
 }
 }

+ 1 - 4
Optimizer/MainForm.resx

@@ -139,7 +139,7 @@
         VUrZey8AAAAASUVORK5CYII=
         VUrZey8AAAAASUVORK5CYII=
 </value>
 </value>
   </data>
   </data>
-  <metadata name="infoBaloon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+  <metadata name="infoTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>615, 45</value>
     <value>615, 45</value>
   </metadata>
   </metadata>
   <data name="toggleSwitch1.ToolTip" xml:space="preserve">
   <data name="toggleSwitch1.ToolTip" xml:space="preserve">
@@ -46586,9 +46586,6 @@ any application only by typing your desired keyword.</value>
         //////////////////////////////////8=
         //////////////////////////////////8=
 </value>
 </value>
   </data>
   </data>
-  <metadata name="infoBaloon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>615, 45</value>
-  </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>79</value>
     <value>79</value>
   </metadata>
   </metadata>

+ 10 - 0
Optimizer/Options.cs

@@ -1,4 +1,5 @@
 using Newtonsoft.Json;
 using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
 using System;
 using System;
 using System.Drawing;
 using System.Drawing;
 using System.IO;
 using System.IO;
@@ -13,6 +14,7 @@ namespace Optimizer
         public Theme Color { get; set; }
         public Theme Color { get; set; }
         public string AppsFolder { get; set; }
         public string AppsFolder { get; set; }
         public bool EnableTray { get; set; }
         public bool EnableTray { get; set; }
+        public bool ShowHelp { get; set; }
 
 
         public bool EnablePerformanceTweaks { get; set; }
         public bool EnablePerformanceTweaks { get; set; }
         public bool DisableNetworkThrottling { get; set; }
         public bool DisableNetworkThrottling { get; set; }
@@ -155,6 +157,12 @@ namespace Optimizer
         {
         {
             if (File.Exists(SettingsFile))
             if (File.Exists(SettingsFile))
             {
             {
+                string jsonFile = File.ReadAllText(SettingsFile);
+                string jsonMemory = JsonConvert.SerializeObject(CurrentOptions);
+
+                // check to see if no changes have been made
+                if (JToken.DeepEquals(JObject.Parse(jsonFile), JObject.Parse(jsonMemory))) return;
+
                 File.Delete(SettingsFile);
                 File.Delete(SettingsFile);
 
 
                 using (FileStream fs = File.Open(SettingsFile, FileMode.OpenOrCreate))
                 using (FileStream fs = File.Open(SettingsFile, FileMode.OpenOrCreate))
@@ -173,10 +181,12 @@ namespace Optimizer
         {
         {
             if (!File.Exists(SettingsFile))
             if (!File.Exists(SettingsFile))
             {
             {
+                // DEFAULT OPTIONS
                 CurrentOptions.Color = Theme.Zerg;
                 CurrentOptions.Color = Theme.Zerg;
                 CurrentOptions.AppsFolder = Path.Combine(Application.StartupPath, "Optimizer Downloads");
                 CurrentOptions.AppsFolder = Path.Combine(Application.StartupPath, "Optimizer Downloads");
                 Directory.CreateDirectory(Options.CurrentOptions.AppsFolder);
                 Directory.CreateDirectory(Options.CurrentOptions.AppsFolder);
                 CurrentOptions.EnableTray = true;
                 CurrentOptions.EnableTray = true;
+                CurrentOptions.ShowHelp = true;
 
 
                 CurrentOptions.EnablePerformanceTweaks = false;
                 CurrentOptions.EnablePerformanceTweaks = false;
                 CurrentOptions.DisableNetworkThrottling = false;
                 CurrentOptions.DisableNetworkThrottling = false;

+ 1 - 1
Optimizer/Program.cs

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

+ 2 - 2
README.md

@@ -54,6 +54,6 @@ https://github.com/hellzerg/optimizer/blob/master/LEGACY.md
 
 
 ## Details: ##
 ## Details: ##
 
 
-* Latest version: 7.5
+* Latest version: 7.6
 * Released: April 12, 2021
 * Released: April 12, 2021
-* SHA256: E3A3B255C7263688D9794AC1B1215E2B35C2C9D4412EF3173E847099B9EBC763
+* SHA256: 5E2744D91DBF1CA34A2C2B2D474D69A850FA47CBFE0965E2DCACD143DADE4D8A

+ 1 - 1
version.txt

@@ -1 +1 @@
-7.5
+7.6

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