diff --git a/functions/public/Invoke-WPFGetIso.ps1 b/functions/public/Invoke-WPFGetIso.ps1 index 7fdb76bc..9286b83f 100644 --- a/functions/public/Invoke-WPFGetIso.ps1 +++ b/functions/public/Invoke-WPFGetIso.ps1 @@ -89,21 +89,6 @@ function Invoke-WPFGetIso { & $fidopath -Win 'Windows 11' -Rel $sync["ISORelease"].SelectedItem -Arch "x64" -Lang $sync["ISOLanguage"].SelectedItem Set-Location $originalLocation $filePath = Get-ChildItem -Path "$env:temp" -Filter "Win11*.iso" | Sort-Object LastWriteTime -Descending | Select-Object -First 1 - - # WIP positioning, wont work as expected currently - $sync["ISOLanguage"].Items.Add($locale) - if ($locale -ne "en-US") { - $sync["ISOLanguage"].Items.Add("en-US") - } - $sync["ISOLanguage"].SelectedItem = $locale - - if ($sync["ISOoption1"].IsChecked) { - $sync["ISORelease"].Visibility = [System.Windows.Visibility]::Visible - $sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Visible - } else { - $sync["ISORelease"].Visibility = [System.Windows.Visibility]::Collapsed - $sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Collapsed - } } Write-Host "File path $($filePath)" diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 076a26d4..8b55a6ff 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -486,6 +486,22 @@ $sync["Form"].Add_Activated({ Set-WinUtilTaskbaritem -overlay "logo" }) +# WIP positioning, wont work as expected currently +$sync["ISOLanguage"].Items.Add($locale) +if ($locale -ne "en-US") { + $sync["ISOLanguage"].Items.Add("en-US") +} +$sync["ISOLanguage"].SelectedItem = $locale + +if ($sync["ISOoption1"].IsChecked) { + + $sync["ISORelease"].Visibility = [System.Windows.Visibility]::Visible + $sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Visible +} else { + $sync["ISORelease"].Visibility = [System.Windows.Visibility]::Collapsed + $sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Collapsed +} + # Define event handler for button click $sync["SettingsButton"].Add_Click({ Write-Debug "SettingsButton clicked"