mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Option to stop AC service
This commit is contained in:
@@ -615,6 +615,11 @@ public static class AppConfig
|
|||||||
return Is("bw_icon");
|
return Is("bw_icon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsStopAC()
|
||||||
|
{
|
||||||
|
return IsAlly() || Is("stop_ac");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace GHelper.Helpers
|
|||||||
if (Process.GetProcessesByName(service).Count() > 0) count++;
|
if (Process.GetProcessesByName(service).Count() > 0) count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsStopAC())
|
||||||
foreach (string service in processesAC)
|
foreach (string service in processesAC)
|
||||||
{
|
{
|
||||||
if (Process.GetProcessesByName(service).Count() > 0)
|
if (Process.GetProcessesByName(service).Count() > 0)
|
||||||
@@ -69,7 +69,7 @@ namespace GHelper.Helpers
|
|||||||
ProcessHelper.StopDisableService(service);
|
ProcessHelper.StopDisableService(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsStopAC())
|
||||||
{
|
{
|
||||||
foreach (string service in servicesAC)
|
foreach (string service in servicesAC)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user