File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ function Invoke-WPFImpex {
56
56
}
57
57
}
58
58
}
59
-
60
- $flattenedJson = [string ]$flattenedJson
59
+
61
60
Invoke-WPFPresets - preset $flattenedJson - imported $true
62
61
}
63
62
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function Invoke-WPFPresets {
17
17
18
18
param (
19
19
[Parameter (position = 0 )]
20
- [string ]$preset = " " ,
20
+ [Array ]$preset = " " ,
21
21
22
22
[Parameter (position = 1 )]
23
23
[bool ]$imported = $false ,
@@ -51,7 +51,7 @@ function Invoke-WPFPresets {
51
51
}
52
52
53
53
# Check if the checkbox name exists in the flattened JSON hashtable
54
- if ($CheckBoxesToCheck.Contains ( $checkboxName ) ) {
54
+ if ($CheckBoxesToCheck -contains $checkboxName ) {
55
55
# If it exists, set IsChecked to true
56
56
$sync .$checkboxName.IsChecked = $true
57
57
Write-Debug " $checkboxName is checked"
You can’t perform that action at this time.
0 commit comments