Fix WinOneShot ComboItems compatibility (#4957)

* Fix WinOneShot ComboItems compatibility

* Align ComboItems validation with renderer
This commit is contained in:
Chris Titus
2026-08-09 16:47:45 -05:00
committed by GitHub
parent bc607b6c91
commit 53fc260cc0
4 changed files with 19 additions and 9 deletions
+5 -1
View File
@@ -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)
}