Option to stop AC service

This commit is contained in:
Serge
2024-05-04 15:34:36 +02:00
parent ba0bac11b5
commit c8bd2a9c1c
2 changed files with 7 additions and 2 deletions

View File

@@ -615,6 +615,11 @@ public static class AppConfig
return Is("bw_icon");
}
public static bool IsStopAC()
{
return IsAlly() || Is("stop_ac");
}
}

View File

@@ -48,7 +48,7 @@ namespace GHelper.Helpers
if (Process.GetProcessesByName(service).Count() > 0) count++;
}
if (AppConfig.IsAlly())
if (AppConfig.IsStopAC())
foreach (string service in processesAC)
{
if (Process.GetProcessesByName(service).Count() > 0)
@@ -69,7 +69,7 @@ namespace GHelper.Helpers
ProcessHelper.StopDisableService(service);
}
if (AppConfig.IsAlly())
if (AppConfig.IsStopAC())
{
foreach (string service in servicesAC)
{