Refactor: Move initial Windows settings population to core module

Moves the logic for the initial population of the Windows settings comboboxes from the UI's loaded event handler into the `Initialize-UIDefaults` function.

This change centralizes UI default value setup into a single location, improving code organization and maintainability.
This commit is contained in:
rbalsleyMSFT
2025-06-17 14:26:31 -07:00
parent ab7c8aa250
commit c1c5aa9239
2 changed files with 4 additions and 4 deletions
-3
View File
@@ -151,9 +151,6 @@ $window.Add_Loaded({
Register-EventHandlers -State $script:uiState
# Get Windows Settings UI using data from helper module
Get-WindowsSettingsCombos -isoPath $script:uiState.Defaults.windowsSettingsDefaults.DefaultISOPath -State $script:uiState
$script:uiState.Controls.txtISOPath.Add_TextChanged({
Get-WindowsSettingsCombos -isoPath $script:uiState.Controls.txtISOPath.Text -State $script:uiState
})