Readme and new screenshot

This commit is contained in:
seerge
2023-02-23 00:41:57 +01:00
parent 44c3d9f3c7
commit 41d92d76cc
3 changed files with 15 additions and 4 deletions

View File

@@ -10,6 +10,17 @@ public class Startup
public static bool IsScheduled()
{
TaskService taskService = new TaskService();
// cleanup of OLD autorun
try
{
taskService.RootFolder.DeleteTask("GSharpHelper");
} catch
{
Debug.WriteLine("Not running as admin");
}
return (taskService.RootFolder.AllTasks.Any(t => t.Name == taskName));
}