Skip to content

Commit

Permalink
fix #421
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Sampson committed Mar 11, 2019
1 parent 61d7769 commit 759eb56
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));
td.Settings.DisallowStartIfOnBatteries = false;
td.Settings.StopIfGoingOnBatteries = false;
TaskService.Instance.RootFolder.RegisterTaskDefinition(_taskName, td);
Console.WriteLine("Task Registered");
}
Expand Down

0 comments on commit 759eb56

Please sign in to comment.