This commit is contained in:
Serge
2024-02-25 21:10:58 +01:00
parent d156d8ace9
commit 95b9a833c1

View File

@@ -433,11 +433,11 @@ namespace GHelper
private void ButtonCores_Click(object? sender, EventArgs e) private void ButtonCores_Click(object? sender, EventArgs e)
{ {
Program.acpi.SetCores(AsusACPI.ECoreMin + comboCoresE.SelectedIndex, AsusACPI.PCoreMin + comboCoresP.SelectedIndex);
DialogResult dialogResult = MessageBox.Show(Properties.Strings.AlertAPUMemoryRestart, Properties.Strings.AlertAPUMemoryRestartTitle, MessageBoxButtons.YesNo); DialogResult dialogResult = MessageBox.Show(Properties.Strings.AlertAPUMemoryRestart, Properties.Strings.AlertAPUMemoryRestartTitle, MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes) if (dialogResult == DialogResult.Yes)
{ {
Program.acpi.SetCores(AsusACPI.ECoreMin + comboCoresE.SelectedIndex, AsusACPI.PCoreMin + comboCoresP.SelectedIndex);
Process.Start("shutdown", "/r /t 1"); Process.Start("shutdown", "/r /t 1");
} }
} }