From b9d7619f9b086a66c29d2be80804a6eb909c64b2 Mon Sep 17 00:00:00 2001 From: Martin Wiethan <47688561+Marterich@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:24:45 +0200 Subject: [PATCH] Explicitly look for a Boolean Result (#2801) --- functions/public/Invoke-WPFUIElements.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index f4c2d73b..3851536d 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -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