From 1637f36d1d1e972d45cb73b909c5882be27717f1 Mon Sep 17 00:00:00 2001 From: seerge Date: Mon, 13 Feb 2023 19:05:48 +0100 Subject: [PATCH] Minor fixes --- gpu.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu.ps1 b/gpu.ps1 index 2a8da5a5..2faf9f82 100644 --- a/gpu.ps1 +++ b/gpu.ps1 @@ -17,7 +17,7 @@ Function Get-PSScriptPath { function SetAutostart () { $taskName = "G14Helper" $task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue - if ($task -ne $null) {return } + if ($null -ne $task) {return } $scriptDir = Get-PSScriptPath @@ -34,7 +34,7 @@ function SetAutostart () { function CheckAutostart () { $task = Get-ScheduledTask -TaskName "G14Helper" -ErrorAction SilentlyContinue - $Menu_Autostart.Checked = ($task -ne $null) + $Menu_Autostart.Checked = ($null -ne $task) } function DisableAutostart () {