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
+4 -2
View File
@@ -79,13 +79,15 @@ Describe 'Get-SelectedRegistryFeaturesForBackupValidation' {
$valueNames.Contains('mode') | Should -BeTrue
}
It 'selects registry-backed apply features and reports unknown IDs' {
It 'selects registry-backed apply features and warns for unknown IDs' {
Mock Write-Warning {}
$errors = New-Object System.Collections.Generic.List[string]
$result = @(Get-SelectedRegistryFeaturesForBackupValidation -SelectedFeatureIds @('ApplyFeature', 'CustomFeature', 'MissingFeature') -IsUndoFeature:$false -Errors $errors)
$result.Id | Should -Be 'ApplyFeature'
$errors | Should -Contain "Selected feature 'MissingFeature' was not found in the current feature catalog."
$errors | Should -BeNullOrEmpty
Should -Invoke Write-Warning -Times 1 -Exactly -ParameterFilter { $Message -like '*MissingFeature*' }
}
It 'uses undo registry keys and falls back to apply keys when needed' {