Skip to content

Commit

Permalink
autostart works with laptops
Browse files Browse the repository at this point in the history
  • Loading branch information
L0laapk3 committed Oct 31, 2018
1 parent 87c0c9a commit ae76d6a
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 ae76d6a

Please sign in to comment.