We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3786ae8 + 5537024 commit 85b291bCopy full SHA for 85b291b
Program.cs
@@ -113,6 +113,11 @@ private void CreateTask()
113
td.Actions.Add(new ExecAction(Application.ExecutablePath, null, null));
114
td.Principal.RunLevel = TaskRunLevel.Highest;
115
116
+ td.Settings.StopIfGoingOnBatteries = false;
117
+ td.Settings.DisallowStartIfOnBatteries = false;
118
+
119
+ td.Settings.UseUnifiedSchedulingEngine = true; // why not?
120
121
ts.RootFolder.RegisterTaskDefinition(appName, td);
122
}
123
0 commit comments