diff --git a/FFUDevelopment/BuildFFUVM_UI.xaml b/FFUDevelopment/BuildFFUVM_UI.xaml index d83332d..d33fba3 100644 --- a/FFUDevelopment/BuildFFUVM_UI.xaml +++ b/FFUDevelopment/BuildFFUVM_UI.xaml @@ -345,7 +345,7 @@ - + @@ -355,7 +355,7 @@ - + diff --git a/FFUDevelopment/FFUUI.Core/FFUUI.Core.Initialize.psm1 b/FFUDevelopment/FFUUI.Core/FFUUI.Core.Initialize.psm1 index 887de8b..e9b1d37 100644 --- a/FFUDevelopment/FFUUI.Core/FFUUI.Core.Initialize.psm1 +++ b/FFUDevelopment/FFUUI.Core/FFUUI.Core.Initialize.psm1 @@ -9,8 +9,10 @@ function Initialize-UIControls { $State.Controls.btnBrowseISO = $window.FindName('btnBrowseISO') $State.Controls.cmbWindowsArch = $window.FindName('cmbWindowsArch') $State.Controls.cmbWindowsLang = $window.FindName('cmbWindowsLang') + $State.Controls.WindowsLangStackPanel = $window.FindName('WindowsLangStackPanel') $State.Controls.cmbWindowsSKU = $window.FindName('cmbWindowsSKU') $State.Controls.cmbMediaType = $window.FindName('cmbMediaType') + $State.Controls.MediaTypeStackPanel = $window.FindName('MediaTypeStackPanel') $State.Controls.txtOptionalFeatures = $window.FindName('txtOptionalFeatures') $State.Controls.featuresPanel = $window.FindName('stackFeaturesContainer') $State.Controls.chkDownloadDrivers = $window.FindName('chkDownloadDrivers') diff --git a/FFUDevelopment/FFUUI.Core/FFUUI.Core.WindowsSettings.psm1 b/FFUDevelopment/FFUUI.Core/FFUUI.Core.WindowsSettings.psm1 index 1c5144d..42cbc6e 100644 --- a/FFUDevelopment/FFUUI.Core/FFUUI.Core.WindowsSettings.psm1 +++ b/FFUDevelopment/FFUUI.Core/FFUUI.Core.WindowsSettings.psm1 @@ -564,6 +564,20 @@ function Get-WindowsSettingsCombos { [psobject]$State ) + # Determine visibility for download-specific controls based on ISO path + $visibility = if (-not [string]::IsNullOrEmpty($isoPath) -and $isoPath.EndsWith('.iso', [System.StringComparison]::OrdinalIgnoreCase)) { + 'Collapsed' + } + else { + 'Visible' + } + + # Set visibility for Language and Media Type controls + $State.Controls.WindowsLangStackPanel.Visibility = $visibility + $State.Controls.cmbWindowsLang.Visibility = $visibility + $State.Controls.MediaTypeStackPanel.Visibility = $visibility + $State.Controls.cmbMediaType.Visibility = $visibility + # Update Release combo first Update-WindowsReleaseCombo -isoPath $isoPath -State $State