filter out unneeded categories

This commit is contained in:
MyDrift
2024-08-15 22:30:57 +02:00
parent 3f48c8aa70
commit 4c6990b515
2 changed files with 13 additions and 2 deletions

View File

@ -87,7 +87,6 @@ function Invoke-WPFUIElements {
# Only apply the logic for distributing entries across columns if the targetGridName is "appspanel"
if ($targetGridName -eq "appspanel") {
$panelcount = 0
$paneltotal = $columncount # Use columncount for even distribution
$entrycount = $configHashtable.Keys.Count + $organizedData["0"].Keys.Count
$maxcount = [Math]::Round($entrycount / $columncount + 0.5)
}
@ -139,7 +138,6 @@ function Invoke-WPFUIElements {
$stackPanel.Children.Add($label) | Out-Null
$sync[$category] = $label
write-host $sync[$category]
# Sort entries by Order and then by Name, but only display Name
$entries = $organizedData[$panelKey][$category] | Sort-Object Order, Name