Hotfix for Category Expansion during search

This commit is contained in:
Marterich 2024-10-14 21:31:53 +02:00
parent ba968d0cb3
commit 2d0e68c90f

View File

@ -213,6 +213,8 @@ function Invoke-WPFUIApps {
$categoryPanel.Cursor = [System.Windows.Input.Cursors]::Hand $categoryPanel.Cursor = [System.Windows.Input.Cursors]::Hand
$categoryPanel.Add_MouseUp({ $categoryPanel.Add_MouseUp({
# Clear the search bar when a category is clicked
$sync.SearchBar.Text = ""
Toggle-CategoryVisibility -Category $this.Children[1].Text -ItemsControl $this.Parent Toggle-CategoryVisibility -Category $this.Children[1].Text -ItemsControl $this.Parent
}) })
$null = $ItemsControl.Items.Add($categoryPanel) $null = $ItemsControl.Items.Add($categoryPanel)