From ae76d6ae18a0fe1de71c2c59f07abbd61c86f951 Mon Sep 17 00:00:00 2001 From: L0laapk3 Date: Wed, 31 Oct 2018 18:55:44 +0100 Subject: [PATCH] autostart works with laptops --- BorderlessGaming.Logic/System/AutoStart.cs | 2 ++ 1 file changed, 2 insertions(+) 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"); }