mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 03:45:30 +00:00
Change Preset Type and Contains (#2789)
This commit is contained in:
parent
02751c706d
commit
182fe09b64
@ -56,8 +56,7 @@ function Invoke-WPFImpex {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$flattenedJson = [string]$flattenedJson
|
||||
|
||||
Invoke-WPFPresets -preset $flattenedJson -imported $true
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ function Invoke-WPFPresets {
|
||||
|
||||
param (
|
||||
[Parameter(position=0)]
|
||||
[string]$preset = "",
|
||||
[Array]$preset = "",
|
||||
|
||||
[Parameter(position=1)]
|
||||
[bool]$imported = $false,
|
||||
@ -51,7 +51,7 @@ function Invoke-WPFPresets {
|
||||
}
|
||||
|
||||
# Check if the checkbox name exists in the flattened JSON hashtable
|
||||
if ($CheckBoxesToCheck.Contains($checkboxName)) {
|
||||
if ($CheckBoxesToCheck -contains $checkboxName) {
|
||||
# If it exists, set IsChecked to true
|
||||
$sync.$checkboxName.IsChecked = $true
|
||||
Write-Debug "$checkboxName is checked"
|
||||
|
Loading…
Reference in New Issue
Block a user