From 22e9f8fa620b21816c71d3b762a478a1800fedd7 Mon Sep 17 00:00:00 2001 From: Logan Laughlin Date: Sat, 16 Feb 2019 15:39:48 -0600 Subject: [PATCH] Fixed compile error, changing `task` to `td` --- BorderlessGaming.Logic/System/AutoStart.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BorderlessGaming.Logic/System/AutoStart.cs b/BorderlessGaming.Logic/System/AutoStart.cs index 679fe74..447cdcf 100644 --- a/BorderlessGaming.Logic/System/AutoStart.cs +++ b/BorderlessGaming.Logic/System/AutoStart.cs @@ -84,8 +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; + td.Settings.DisallowStartIfOnBatteries = false; + td.Settings.StopIfGoingOnBatteries = false; TaskService.Instance.RootFolder.RegisterTaskDefinition(_taskName, td); Console.WriteLine("Task Registered"); }