Refactor Windows settings function for clarity

Renames the function for populating Windows settings UI controls to better reflect its purpose.

The `Get-` verb more accurately describes the function's action of retrieving information from the ISO file, as opposed to the previous `Initialize-` verb.
This commit is contained in:
rbalsleyMSFT
2025-06-17 13:21:56 -07:00
parent acd0092f26
commit 0fb9878cff
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -147,11 +147,11 @@ $window.Add_Loaded({
Initialize-DynamicUIElements -State $script:uiState Initialize-DynamicUIElements -State $script:uiState
# Initialize Windows Settings UI using data from helper module # Get Windows Settings UI using data from helper module
Initialize-WindowsSettingsCombos -isoPath $script:uiState.Defaults.windowsSettingsDefaults.DefaultISOPath -State $script:uiState # Use combined refresh function Get-WindowsSettingsCombos -isoPath $script:uiState.Defaults.windowsSettingsDefaults.DefaultISOPath -State $script:uiState # Use combined refresh function
$script:uiState.Controls.txtISOPath.Add_TextChanged({ $script:uiState.Controls.txtISOPath.Add_TextChanged({
Initialize-WindowsSettingsCombos -isoPath $script:uiState.Controls.txtISOPath.Text -State $script:uiState Get-WindowsSettingsCombos -isoPath $script:uiState.Controls.txtISOPath.Text -State $script:uiState
}) })
$script:uiState.Controls.cmbWindowsRelease.Add_SelectionChanged({ $script:uiState.Controls.cmbWindowsRelease.Add_SelectionChanged({
$selectedReleaseValue = 11 # Default if null $selectedReleaseValue = 11 # Default if null
@@ -463,7 +463,7 @@ function Update-WindowsSkuCombo {
} }
# Combined function to initialize the Release, Version, and SKU combos # Combined function to initialize the Release, Version, and SKU combos
function Initialize-WindowsSettingsCombos { function Get-WindowsSettingsCombos {
param( param(
[string]$isoPath, [string]$isoPath,
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]