Merge branch 'seerge:main' into cpu-auto-tdp

This commit is contained in:
IceStormNG
2024-03-01 14:28:49 +01:00
committed by GitHub
2 changed files with 30 additions and 13 deletions

View File

@@ -294,6 +294,11 @@ public class AsusACPI
MaxGPUPower = 70; MaxGPUPower = 70;
} }
if (AppConfig.IsSlash())
{
MaxGPUPower = 25;
}
if (AppConfig.DynamicBoost5()) if (AppConfig.DynamicBoost5())
{ {
MaxGPUBoost = 5; MaxGPUBoost = 5;

View File

@@ -161,12 +161,10 @@ 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; var label = table.GetControlFromPosition(3, position) as LinkLabel;
if (label != null) if (label != null)
{
Invoke(delegate
{ {
if (newer == DRIVER_NEWER) if (newer == DRIVER_NEWER)
{ {
@@ -177,10 +175,24 @@ namespace GHelper
if (newer == DRIVER_NOT_FOUND) label.LinkColor = Color.Gray; if (newer == DRIVER_NOT_FOUND) label.LinkColor = Color.Gray;
});
} }
} }
public void VisualiseNewDriver(int position, int newer, TableLayoutPanel table)
{
if (InvokeRequired)
{
Invoke(delegate
{
_VisualiseNewDriver(position, newer, table);
});
} else
{
_VisualiseNewDriver(position, newer, table);
}
}
public void VisualiseNewCount(int updatesCount, TableLayoutPanel table) public void VisualiseNewCount(int updatesCount, TableLayoutPanel table)
{ {
Invoke(delegate Invoke(delegate