diff --git a/BorderlessGaming.Logic/System/AutoStart.cs b/BorderlessGaming.Logic/System/AutoStart.cs index cc8e6ce..447cdcf 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)); + td.Settings.DisallowStartIfOnBatteries = false; + td.Settings.StopIfGoingOnBatteries = false; TaskService.Instance.RootFolder.RegisterTaskDefinition(_taskName, td); Console.WriteLine("Task Registered"); }