remove: disable Drag Tray feature and related configurations (#850)

To ensure old backups continue to function, backup handling now skips any unknown features found in backups.
This commit is contained in:
Jeffrey
2026-10-24 01:30:25 +02:00
committed by GitHub
parent 7d9777d6c6
commit 0eec316edb
19 changed files with 207 additions and 89 deletions
@@ -49,10 +49,12 @@ Describe 'Test-RegistryBackupMatchesSelectedFeatures' {
$script:CapturePlanCalls | Should -Be @($true)
}
It 'reports unknown selected features without deriving capture plans' {
It 'warns and skips unknown selected features without deriving capture plans' {
Mock Write-Warning {}
$errors = @(Test-RegistryBackupMatchesSelectedFeatures -SelectedFeatureIds @('UnknownFeature') -SelectedUndoFeatureIds @() -Target 'CurrentUser' -RegistryKeys @())
$errors | Should -Contain "Selected feature 'UnknownFeature' was not found in the current feature catalog."
$errors | Should -BeNullOrEmpty
Should -Invoke Write-Warning -Times 1 -Exactly -ParameterFilter { $Message -like '*UnknownFeature*' }
$script:CapturePlanCalls | Should -BeNullOrEmpty
}