From 8e5fcceddb9e1597786f15a63edde0eee25a4412 Mon Sep 17 00:00:00 2001 From: Massimiliano Sartore Date: Wed, 11 Sep 2024 14:20:25 +0000 Subject: [PATCH] fix "ToLower" method invocation failure (#2714) --- scripts/main.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index e96dc944..28bf9525 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -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