From 5b96757939272b43e427ae18dd9467a7a1350d41 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 21 Jan 2024 15:47:49 +0100 Subject: [PATCH] Ally XGM binding --- app/AsusACPI.cs | 1 - app/Settings.cs | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index 2b95bec0..e5bde3e5 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -571,7 +571,6 @@ public class AsusACPI public bool IsXGConnected() { - //return true; return DeviceGet(GPUXGConnected) == 1; } diff --git a/app/Settings.cs b/app/Settings.cs index 1f02ad2d..85320929 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -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; }