Ally XGM binding

This commit is contained in:
Serge
2024-01-21 15:47:49 +01:00
parent 3fbd833e21
commit 5b96757939
2 changed files with 6 additions and 2 deletions

View File

@@ -571,7 +571,6 @@ public class AsusACPI
public bool IsXGConnected()
{
//return true;
return DeviceGet(GPUXGConnected) == 1;
}

View File

@@ -1327,7 +1327,12 @@ namespace GHelper
if (AppConfig.IsAlly())
{
tableGPU.Visible = false;
if (Program.acpi.IsXGConnected()) tableAMD.Controls.Add(buttonXGM, 1, 0);
labelGPU.Text = "GPU";
if (Program.acpi.IsXGConnected())
{
tableAMD.Controls.Add(buttonXGM, 1, 0);
VisualizeXGM();
}
return;
}