mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-10 10:36:26 +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)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user