This commit is contained in:
Serge
2023-06-05 11:49:56 +02:00
parent e9060ad8c0
commit 4c8291c74b
2 changed files with 6 additions and 2 deletions

View File

@@ -187,7 +187,11 @@ public class AmdGpuControl : IGpuControl
}
}
foreach (string kill in appNames) ProcessHelper.KillByName(kill);
List<string> immune = new() { "svchost", "system", "ntoskrnl", "csrss", "winlogon", "wininit", "smss" };
foreach (string kill in appNames)
if (!immune.Contains(kill.ToLower()))
ProcessHelper.KillByName(kill);
}

View File

@@ -1474,7 +1474,7 @@ namespace GHelper
UltimateUI(mux == 1);
if (eco < 0)
if (eco < 0 && mux < 0)
{
isGpuSection = tableGPU.Visible = false;
SetContextMenu();