mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-11 11:06:27 +00:00
Remove redundant undo action logic for comboboxes
This commit is contained in:
@@ -1863,16 +1863,6 @@ function Show-MainWindow {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($isNowIndex -eq 0 -and $wasIndex -gt 0 -and $wasIndex -le $mapping.Values.Count) {
|
|
||||||
$prevValue = $mapping.Values[$wasIndex - 1]
|
|
||||||
foreach ($fid in $prevValue.FeatureIds) {
|
|
||||||
$actions.Add([PSCustomObject]@{
|
|
||||||
Action = 'Undo'
|
|
||||||
FeatureId = [string]$fid
|
|
||||||
Label = (Get-FeatureLabel -FeatureId $fid)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function Show-RestoreBackupWindow {
|
|||||||
Write-Host "User confirmed registry restore for $($backup.Target)."
|
Write-Host "User confirmed registry restore for $($backup.Target)."
|
||||||
Restore-RegistryBackupState -Backup $backup
|
Restore-RegistryBackupState -Backup $backup
|
||||||
$restoreResult.RestoredRegistry = $true
|
$restoreResult.RestoredRegistry = $true
|
||||||
$successMessage = 'Registry backup restored successfully. Some changes may require a sign out or restart to take effect.'
|
$successMessage = 'Registry backup restored successfully. Some changes may require a restart to take effect.'
|
||||||
}
|
}
|
||||||
elseif ($dialogResult.Result -eq 'RestoreStartMenu') {
|
elseif ($dialogResult.Result -eq 'RestoreStartMenu') {
|
||||||
$scope = $dialogResult.StartMenuScope
|
$scope = $dialogResult.StartMenuScope
|
||||||
|
|||||||
Reference in New Issue
Block a user