diff --git a/app/Settings.cs b/app/Settings.cs index 259e367a..d462cd2c 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -6,7 +6,6 @@ using System.Net; using System.Reflection; using System.Text.Json; using System.Timers; -using System.Windows.Forms; using Tools; namespace GHelper @@ -205,7 +204,8 @@ namespace GHelper try { base.WndProc(ref m); - } catch (Exception ex) + } + catch (Exception ex) { Debug.WriteLine(ex.ToString()); } @@ -1243,7 +1243,7 @@ namespace GHelper int backlight = AppConfig.getConfig("keyboard_brightness"); - if (AppConfig.isConfig("keyboard_auto") && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) + if (AppConfig.isConfig("keyboard_auto") && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) AsusUSB.ApplyBrightness(0); else if (backlight >= 0) AsusUSB.ApplyBrightness(backlight); @@ -1416,7 +1416,7 @@ namespace GHelper if (eco < 0) { tableGPU.Visible = false; - if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0 ) panelGPU.Visible = false; + if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0) panelGPU.Visible = false; } } @@ -1479,7 +1479,7 @@ namespace GHelper protected static void KillGPUApps() { string[] tokill = { "EADesktop", "RadeonSoftware", "epicgameslauncher" }; - + foreach (string kill in tokill) foreach (var process in Process.GetProcessesByName(kill)) process.Kill(); diff --git a/bloat.bat b/bloat.bat index 0d20c7b1..c402d4cf 100644 --- a/bloat.bat +++ b/bloat.bat @@ -6,6 +6,8 @@ sc config ASUSSwitch start= auto sc config ASUSSystemAnalysis start= auto sc config ASUSSystemDiagnosis start= auto sc config ArmouryCrateControlInterface start= auto +sc config AsusCertService start= auto +sc config ASUSOptimization start= auto sc START AsusAppService sc START ASUSLinkNear @@ -14,6 +16,8 @@ sc START ASUSSoftwareManager sc START ASUSSwitch sc START ASUSSystemAnalysis sc START ASUSSystemDiagnosis -sc START ArmouryCrateControlInterface +sc START ArmouryCrateControlInterface +sc START AsusCertService +sc START ASUSOptimization set /p asd="Hit enter to finish" diff --git a/debloat.bat b/debloat.bat index e8818226..94ae1729 100644 --- a/debloat.bat +++ b/debloat.bat @@ -5,7 +5,9 @@ sc STOP ASUSSoftwareManager sc STOP ASUSSwitch sc STOP ASUSSystemAnalysis sc STOP ASUSSystemDiagnosis -sc STOP ArmouryCrateControlInterface +sc STOP ArmouryCrateControlInterface +sc STOP AsusCertService +sc STOP ASUSOptimization sc config AsusAppService start= disabled sc config ASUSLinkNear start= disabled @@ -15,5 +17,7 @@ sc config ASUSSwitch start= disabled sc config ASUSSystemAnalysis start= disabled sc config ASUSSystemDiagnosis start= disabled sc config ArmouryCrateControlInterface start= disabled +sc config AsusCertService start= disabled +sc config ASUSOptimization start= disabled set /p asd="Hit enter to finish"