Fix prefer choco visibility (#2782)

This commit is contained in:
Martin Wiethan 2024-09-21 17:03:56 +02:00 committed by GitHub
parent 42febae25e
commit 662139ca5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -452,8 +452,8 @@ $sync["SearchBar"].Add_TextChanged({
$textToSearch = $sync.SearchBar.Text.ToLower() $textToSearch = $sync.SearchBar.Text.ToLower()
foreach ($CheckBox in $CheckBoxes) { foreach ($CheckBox in $CheckBoxes) {
# Check if the checkbox is null or if it doesn't have content # Skip if the checkbox is null, it doesn't have content or it is the prefer Choco checkbox
if ($CheckBox -eq $null -or $CheckBox.Value -eq $null -or $CheckBox.Value.Content -eq $null) { if ($CheckBox -eq $null -or $CheckBox.Value -eq $null -or $CheckBox.Value.Content -eq $null -or $CheckBox.Name -eq "WPFpreferChocolatey") {
continue continue
} }