Fix undo when using presets

This commit is contained in:
Raphire
2026-03-22 23:44:59 +01:00
parent a54c3c6918
commit cfc868ba91
2 changed files with 9 additions and 2 deletions

View File

@@ -2,7 +2,13 @@
function PrintPendingChanges {
$skippedParams = @()
$undoChanges = $script:Params.ContainsKey('Undo')
Write-Output "Win11Debloat will make the following changes:"
if ($undoChanges) {
Write-Output "Win11Debloat will make the following changes to revert the selected settings to Windows defaults:"
}
else {
Write-Output "Win11Debloat will make the following changes:"
}
if ($script:Params['CreateRestorePoint']) {
Write-Output "- $($script:Features['CreateRestorePoint'].Label)"