From c056bbcfe4c86395ebe20397d633c519dc005944 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Mon, 19 Aug 2024 22:46:12 +0200 Subject: [PATCH] last fixes & add notes --- functions/public/Invoke-WPFUIElements.ps1 | 6 ++---- scripts/main.ps1 | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index d5f985c8..764f5d07 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -9,11 +9,9 @@ function Invoke-WPFUIElements { .PARAMETER columncount The number of columns to be used in the Grid. If not provided, a default value is used based on the panel. .EXAMPLE - $categoryPanelMap = @{ - "Essential Tweaks" = 0 - "Customize Preferences" = 1 - } Invoke-WPFUIElements -configVariable $sync.configs.applications -targetGridName "install" -columncount 5 + .NOTES + Future me/contributer: If possible please wrap this into a runspace to make it load all panels at the same time. #> param( diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 0797f54a..f5c9b978 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -414,7 +414,8 @@ $sync["SearchBar"].Add_TextChanged({ $inactiveCategories = $allCategories } foreach ($category in $inactiveCategories) { - $sync[$category].Visibility = "Collapsed"} + $sync[$category].Visibility = "Collapsed" + } }) # Initialize the hashtable