move restore point to runspace (#1056)

This commit is contained in:
DeveloperDurp 2023-09-25 12:40:33 +00:00 committed by GitHub
parent 051b770661
commit bbab426508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,13 +22,13 @@ function Invoke-WPFtweaksbutton {
return return
} }
Set-WinUtilRestorePoint
Invoke-WPFRunspace -ArgumentList $Tweaks -ScriptBlock { Invoke-WPFRunspace -ArgumentList $Tweaks -ScriptBlock {
param($Tweaks) param($Tweaks)
$sync.ProcessRunning = $true $sync.ProcessRunning = $true
Set-WinUtilRestorePoint
Foreach ($tweak in $tweaks){ Foreach ($tweak in $tweaks){
Invoke-WinUtilTweaks $tweak Invoke-WinUtilTweaks $tweak
} }