mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-11 18:41:18 +10:00
Fix WinOneShot ComboItems compatibility (#4957)
* Fix WinOneShot ComboItems compatibility * Align ComboItems validation with renderer
This commit is contained in:
@@ -271,7 +271,11 @@ function Invoke-WPFUIElements {
|
||||
[System.Windows.Automation.AutomationProperties]::SetName($comboBox, $entryInfo.Content)
|
||||
|
||||
$comboItems = if ($entryInfo.ComboItems -is [string]) {
|
||||
$entryInfo.ComboItems -split " "
|
||||
if ($entryInfo.ComboItems.Contains("|")) {
|
||||
$entryInfo.ComboItems -split "\|"
|
||||
} else {
|
||||
$entryInfo.ComboItems -split " "
|
||||
}
|
||||
} else {
|
||||
@($entryInfo.ComboItems)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user