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