Unite preferences (#4133)

* One preference file

* Set default before converting types
This commit is contained in:
KamaleiZestri
2026-03-02 13:05:43 -06:00
committed by GitHub
parent a2e2395ce9
commit ddc10b0935
8 changed files with 109 additions and 86 deletions

View File

@@ -18,7 +18,7 @@ function Invoke-WPFGetInstalled {
if (($sync.ChocoRadioButton.IsChecked -eq $false) -and ((Test-WinUtilPackageManager -winget) -eq "not-installed") -and $checkbox -eq "winget") {
return
}
$managerPreference = $sync["ManagerPreference"]
$managerPreference = $sync.preferences.packagemanager
Invoke-WPFRunspace -ParameterList @(("managerPreference", $managerPreference),("checkbox", $checkbox)) -ScriptBlock {
param (