mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 18:42:35 -05:00
WIP: refractor of existing logic & addition of language selection
This commit is contained in:
@ -375,27 +375,11 @@ Add-Type @"
|
||||
|
||||
})
|
||||
|
||||
$locale = (Get-Culture).Name
|
||||
|
||||
$sync["ISORelease"].Items.Add("23H2")
|
||||
$sync["ISORelease"].Items.Add("22H2")
|
||||
$sync["ISORelease"].Items.Add("21H2")
|
||||
$sync["ISORelease"].SelectedItem = "23H2"
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
# Load Checkboxes and Labels outside of the Filter function only once on startup for performance reasons
|
||||
$filter = Get-WinUtilVariables -Type CheckBox
|
||||
$CheckBoxes = ($sync.GetEnumerator()).where{ $psitem.Key -in $filter }
|
||||
|
Reference in New Issue
Block a user