Skip to content

Commit

Permalink
Explicitly look for a Boolean Result (#2801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marterich authored Sep 23, 2024
1 parent 4e39096 commit b9d7619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFUIElements.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function Invoke-WPFUIElements {
$checkBox.FontSize = $theme.FontSize
$checkBox.ToolTip = $entryInfo.Description
$checkBox.Margin = $theme.CheckBoxMargin
if ($entryInfo.Checked) {
if ($entryInfo.Checked -eq $true) {
$checkBox.IsChecked = $entryInfo.Checked
}
$horizontalStackPanel.Children.Add($checkBox) | Out-Null
Expand Down

0 comments on commit b9d7619

Please sign in to comment.