Fix issue when checking logon task

This commit is contained in:
Jack251970 2025-01-31 22:22:00 +08:00
parent 3f93d184c5
commit 3d9a6b28d0

View file

@ -56,15 +56,16 @@ public class AutoStartup
UnscheduleLogonTask();
ScheduleLogonTask();
}
return true;
}
catch (Exception)
{
Log.Error("AutoStartup", "Failed to check logon task");
return false;
}
}
return true;
return false;
}
public static void Disable(bool logonTask)