Refactor Applications tab UI event handling

Consolidates the scattered event handlers for the Applications tab checkboxes into a single, centralized function and a shared event handler. This new approach manages the visibility of all dependent UI panels based on the state of the checkboxes.

This refactoring simplifies the codebase, eliminates redundant logic, and ensures a more consistent and predictable user interface state.

Additionally, this change fixes bugs where clearing list views for Winget results and drivers did not properly update their "select all" header checkboxes.
This commit is contained in:
rbalsleyMSFT
2025-06-19 18:38:53 -07:00
parent c946e56a41
commit 4b7e815c68
4 changed files with 74 additions and 84 deletions
@@ -261,7 +261,9 @@ function Initialize-UIDefaults {
# Set initial state for Office panel visibility
Update-OfficePanelVisibility -State $State
# Set initial state for Application panel visibility
Update-ApplicationPanelVisibility -State $State
}
function Initialize-DynamicUIElements {