Skip to content

Commit

Permalink
fix "ToLower" method invocation failure (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
msartore authored Sep 11, 2024
1 parent 19a3c70 commit 8e5fcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ $sync["SearchBar"].Add_TextChanged({
# Retrieve the corresponding text block based on the generated name
$textBlock = $sync[$textBlockName]

if ($CheckBox.Value.Content.ToLower().Contains($textToSearch)) {
if ($CheckBox.Value.Content.ToString().ToLower().Contains($textToSearch)) {
$CheckBox.Value.Visibility = "Visible"
$activeApplications += $sync.configs.applications.$checkboxName
# Set the corresponding text block visibility
Expand Down

0 comments on commit 8e5fcce

Please sign in to comment.