Fix system restore actions not being printed

This commit is contained in:
Raphire
2025-08-16 02:03:53 +02:00
parent 31b13bf861
commit a68c0a53fb

View File

@@ -800,6 +800,8 @@ function CreateSystemRestorePoint {
Write-Output "Press any key to continue anyway..." Write-Output "Press any key to continue anyway..."
$null = [System.Console]::ReadKey() $null = [System.Console]::ReadKey()
return return
} else {
Receive-Job $enableSystemRestoreJob
} }
} else { } else {
Write-Output "" Write-Output ""
@@ -836,6 +838,8 @@ function CreateSystemRestorePoint {
Write-Output "" Write-Output ""
Write-Output "Press any key to continue anyway..." Write-Output "Press any key to continue anyway..."
$null = [System.Console]::ReadKey() $null = [System.Console]::ReadKey()
} else {
Receive-Job $createRestorePointJob
} }
Write-Output "" Write-Output ""