diff --git a/BorderlessGaming.Logic/System/AutoStart.cs b/BorderlessGaming.Logic/System/AutoStart.cs index cc8e6ce..679fe74 100644 --- a/BorderlessGaming.Logic/System/AutoStart.cs +++ b/BorderlessGaming.Logic/System/AutoStart.cs @@ -84,6 +84,8 @@ private static void CreateEntry(string silentMinimize) var logT = new LogonTrigger {Delay = new TimeSpan(0, 0, 0, 10)}; td.Triggers.Add(logT); td.Actions.Add(new ExecAction(AppEnvironment.Path, silentMinimize, null)); + task.Settings.DisallowStartIfOnBatteries = false; + task.Settings.StopIfGoingOnBatteries = false; TaskService.Instance.RootFolder.RegisterTaskDefinition(_taskName, td); Console.WriteLine("Task Registered"); }