Switch to PreferChocolatey Checkbox

This commit is contained in:
Marterich
2024-08-21 22:49:12 +02:00
parent ccd8dc89b0
commit a3ab1409e5
9 changed files with 86 additions and 133 deletions

View File

@ -87,19 +87,6 @@ try {
$xaml.SelectNodes("//*[@Name]") | ForEach-Object {$sync["$("$($psitem.Name)")"] = $sync["Form"].FindName($psitem.Name)}
#Initialize Download Engine
$selectedItem = $sync.WPFselectDownloadEngine.SelectedItem
$selectedText = $selectedItem.Content
$sync.DownloadEngine = $selectedText
Set-DownloadEngine
$sync.WPFselectDownloadEngine.Add_SelectionChanged({
$selectedItem = $sync.WPFselectDownloadEngine.SelectedItem
$selectedText = $selectedItem.Content
$sync.DownloadEngine = $selectedText
Set-DownloadEngine
})
$sync.keys | ForEach-Object {
if($sync.$psitem) {
if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "CheckBox" `