From 268e55d47af1e2a023f651e3e1ff760bdc075a95 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:32:41 +0100 Subject: [PATCH 1/2] UI Tweaks --- app/Updates.cs | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/app/Updates.cs b/app/Updates.cs index 428466e6..9f48c926 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; @@ -160,24 +160,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) @@ -193,7 +205,7 @@ namespace GHelper }); } - public async void DriversAsync(string url, int type, TableLayoutPanel table) + public async void DriversAsync(string url, int type, TableLayoutPanel table) { try @@ -266,7 +278,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); } } From 63b357a71bfd51e4ffaa63f0c453fde02ecfb603 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:38:48 +0100 Subject: [PATCH 2/2] GPU Power slider limits --- app/AsusACPI.cs | 5 +++++ 1 file changed, 5 insertions(+) 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;