diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index 48118eb2..f90d86ee 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -294,6 +294,11 @@ public class AsusACPI MaxGPUPower = 70; } + if (AppConfig.IsSlash()) + { + MaxGPUPower = 25; + } + if (AppConfig.DynamicBoost5()) { MaxGPUBoost = 5; diff --git a/app/Updates.cs b/app/Updates.cs index 29af78f4..6c0b17e7 100644 --- a/app/Updates.cs +++ b/app/Updates.cs @@ -36,7 +36,7 @@ namespace GHelper (bios, model) = AppConfig.GetBiosAndModel(); buttonRefresh.TabStop = false; - + updatesCount = 0; labelUpdates.ForeColor = colorEco; labelUpdates.Text = Properties.Strings.NoNewUpdates; @@ -161,24 +161,36 @@ namespace GHelper }); } - public void VisualiseNewDriver(int position, int newer, TableLayoutPanel table) + private void _VisualiseNewDriver(int position, int newer, TableLayoutPanel table) { var label = table.GetControlFromPosition(3, position) as LinkLabel; if (label != null) + { + if (newer == DRIVER_NEWER) + { + label.AccessibleName = label.AccessibleName + Properties.Strings.NewUpdates; + label.Font = new Font(label.Font, FontStyle.Underline | FontStyle.Bold); + label.LinkColor = colorTurbo; + } + + if (newer == DRIVER_NOT_FOUND) label.LinkColor = Color.Gray; + + } + } + + public void VisualiseNewDriver(int position, int newer, TableLayoutPanel table) + { + if (InvokeRequired) { Invoke(delegate { - if (newer == DRIVER_NEWER) - { - label.AccessibleName = label.AccessibleName + Properties.Strings.NewUpdates; - label.Font = new Font(label.Font, FontStyle.Underline | FontStyle.Bold); - label.LinkColor = colorTurbo; - } - - if (newer == DRIVER_NOT_FOUND) label.LinkColor = Color.Gray; - + _VisualiseNewDriver(position, newer, table); }); + } else + { + _VisualiseNewDriver(position, newer, table); } + } public void VisualiseNewCount(int updatesCount, TableLayoutPanel table) @@ -194,7 +206,7 @@ namespace GHelper }); } - public async void DriversAsync(string url, int type, TableLayoutPanel table) + public async void DriversAsync(string url, int type, TableLayoutPanel table) { try @@ -267,7 +279,7 @@ namespace GHelper foreach (var localVersion in localVersions) { newer = Math.Min(newer, new Version(driver.version).CompareTo(new Version(localVersion))); - Logger.WriteLine(driver.title + " " + deviceID + " "+ driver.version + " vs " + localVersion + " = " + newer); + Logger.WriteLine(driver.title + " " + deviceID + " " + driver.version + " vs " + localVersion + " = " + newer); } }