mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
[MicroWin] ISO Downloader Enhancements (#2787)
* Avoid duplicating items in lang list and fix issue - Changed the first item in the language list to show "System language". Then we determine it and download it - Fixed an issue where the entire contents of `gci` were being passed to the variable, which causes the rest to fail * Add spaces for consistent indentation * Modify current dir command to automatic variable Thanks @ruxunderscore for suggesting * Move downloaded ISO to user-specified path * Indentation fixes for comments * Update functions/public/Invoke-WPFGetIso.ps1 Co-authored-by: Luka Momčilović <l.momcilovic61@gmail.com> * Modify first language item and add error handling --------- Co-authored-by: Luka Momčilović <l.momcilovic61@gmail.com>
This commit is contained in:
@ -415,9 +415,7 @@ $sync["ISORelease"].Items.Add("22H2") | Out-Null
|
||||
$sync["ISORelease"].Items.Add("21H2") | Out-Null
|
||||
$sync["ISORelease"].SelectedItem = "23H2"
|
||||
|
||||
$currentCulture = Get-FidoLangFromCulture -langName (Get-Culture).Name
|
||||
|
||||
$sync["ISOLanguage"].Items.Add($currentCulture) | Out-Null
|
||||
$sync["ISOLanguage"].Items.Add("System Language ($(Get-FidoLangFromCulture -langName $((Get-Culture).Name)))") | Out-Null
|
||||
if ($currentCulture -ne "English International") {
|
||||
$sync["ISOLanguage"].Items.Add("English International") | Out-Null
|
||||
}
|
||||
@ -427,7 +425,7 @@ if ($currentCulture -ne "English") {
|
||||
if ($sync["ISOLanguage"].Items.Count -eq 1) {
|
||||
$sync["ISOLanguage"].IsEnabled = $false
|
||||
}
|
||||
$sync["ISOLanguage"].SelectedItem = $currentCulture
|
||||
$sync["ISOLanguage"].SelectedIndex = 0
|
||||
|
||||
|
||||
# Load Checkboxes and Labels outside of the Filter function only once on startup for performance reasons
|
||||
|
Reference in New Issue
Block a user