mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Minor fixes
This commit is contained in:
4
gpu.ps1
4
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 () {
|
||||
|
||||
Reference in New Issue
Block a user