From 4c8291c74b1a101ad0f889902e87cf83285eb890 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 5 Jun 2023 11:49:56 +0200 Subject: [PATCH] S15 fix --- app/Gpu/AmdGpuControl.cs | 6 +++++- app/Settings.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Gpu/AmdGpuControl.cs b/app/Gpu/AmdGpuControl.cs index 919d2072..72034745 100644 --- a/app/Gpu/AmdGpuControl.cs +++ b/app/Gpu/AmdGpuControl.cs @@ -187,7 +187,11 @@ public class AmdGpuControl : IGpuControl } } - foreach (string kill in appNames) ProcessHelper.KillByName(kill); + List immune = new() { "svchost", "system", "ntoskrnl", "csrss", "winlogon", "wininit", "smss" }; + + foreach (string kill in appNames) + if (!immune.Contains(kill.ToLower())) + ProcessHelper.KillByName(kill); } diff --git a/app/Settings.cs b/app/Settings.cs index 2e1834e4..7eb3366f 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1474,7 +1474,7 @@ namespace GHelper UltimateUI(mux == 1); - if (eco < 0) + if (eco < 0 && mux < 0) { isGpuSection = tableGPU.Visible = false; SetContextMenu();