Skip to content

Commit

Permalink
Merge pull request Codeusa#422 from L0laapk3/master
Browse files Browse the repository at this point in the history
autostart works with laptops
  • Loading branch information
Andrew Sampson authored Nov 1, 2018
2 parents 87c0c9a + ae76d6a commit 958660b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BorderlessGaming.Logic/System/AutoStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 958660b

Please sign in to comment.