remove unused autofallback

This commit is contained in:
MyDrift 2025-02-28 20:08:48 +01:00
parent daf75a1d4a
commit 8782aaa74f
2 changed files with 0 additions and 13 deletions

View File

@ -44,12 +44,5 @@
"Checked": false, "Checked": false,
"Order": "2", "Order": "2",
"Description": "Use Chocolatey for package management" "Description": "Use Chocolatey for package management"
},
"autofallback": {
"Content": "Auto Fallback",
"Category": "__Package Manager",
"Checked": true,
"Order": "3",
"Description": "If the selected package manager fails, automatically switch to the other one"
} }
} }

View File

@ -148,12 +148,6 @@ if (Test-Path $ChocoPreferencePath) {
$sync.ChocoRadioButton.IsChecked = $true $sync.ChocoRadioButton.IsChecked = $true
} }
$sync.autofallback.IsEnabled = $false
$sync.autofallback.Opacity = 0.5
$sync.autofallback.ToolTip = "This feature is currently under development."
[System.Windows.Controls.ToolTipService]::SetShowOnDisabled($sync.autofallback, $true)
$sync.keys | ForEach-Object { $sync.keys | ForEach-Object {
if($sync.$psitem) { if($sync.$psitem) {
if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton") { if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton") {