mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
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:
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user