From 12a2a147d4b328c5500b7270bce647fbd1a7c585 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:50:53 +0100 Subject: [PATCH] Hide APU memory setting for non-ally models --- app/Extra.cs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/Extra.cs b/app/Extra.cs index 2aa56919..660f2e64 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -177,16 +177,6 @@ namespace GHelper checkUSBC.Visible = false; } - int apuMem = Program.acpi.GetAPUMem(); - if (apuMem >= 0) - { - panelAPU.Visible = true; - comboAPU.DropDownStyle = ComboBoxStyle.DropDownList; - comboAPU.SelectedIndex = apuMem; - } - - comboAPU.SelectedIndexChanged += ComboAPU_SelectedIndexChanged; - // Change text and hide irrelevant options on the ROG Ally, // which is a bit of a special case piece of hardware. if (AppConfig.IsAlly()) @@ -208,6 +198,17 @@ namespace GHelper SetKeyCombo(comboM4, textM4, "m4"); SetKeyCombo(comboFNF4, textFNF4, "paddle"); + + int apuMem = Program.acpi.GetAPUMem(); + if (apuMem >= 0) + { + panelAPU.Visible = true; + comboAPU.DropDownStyle = ComboBoxStyle.DropDownList; + comboAPU.SelectedIndex = apuMem; + } + + comboAPU.SelectedIndexChanged += ComboAPU_SelectedIndexChanged; + } else {