Fix: Show reboot warning for undoing features that require it (#699)

This commit is contained in:
Jeffrey
2026-07-11 20:04:51 +02:00
committed by GitHub
parent 74dedc00e9
commit 3b78e8d4ed
5 changed files with 52 additions and 20 deletions
+1 -7
View File
@@ -144,13 +144,7 @@ function Show-ApplyModal {
# Show completion message with reboot instructions if any applied features require reboot
if ($RestartExplorer) {
$rebootFeatures = @()
foreach ($paramKey in $script:Params.Keys) {
if ($script:Features.ContainsKey($paramKey) -and $script:Features[$paramKey].RequiresReboot -eq $true) {
$feature = $script:Features[$paramKey]
$rebootFeatures += "$($feature.Label)"
}
}
$rebootFeatures = Get-RebootFeatureLabels
if ($rebootFeatures.Count -gt 0) {
foreach ($featureName in $rebootFeatures) {