Update samy.ps1

This commit is contained in:
2025-12-20 23:06:38 -05:00
parent c3130fc6eb
commit a7fdf77149

View File

@@ -718,6 +718,12 @@ function Get-SamyTasks {
[string]$tooltipRaw [string]$tooltipRaw
} }
# DEBUG: inspect label type
$lbl = $t.Label
if ($lbl -is [System.Collections.IEnumerable] -and -not ($lbl -is [string])) {
Write-LogHybrid "LABEL IS ARRAY?! Id=$($t.Id) Type=$($lbl.GetType().FullName) Count=$(@($lbl).Count)" Warning UI -LogToEvent
}
# Fallback: tooltip defaults to label # Fallback: tooltip defaults to label
if ([string]::IsNullOrWhiteSpace($tooltip)) { if ([string]::IsNullOrWhiteSpace($tooltip)) {
$tooltip = [string]$t.Label $tooltip = [string]$t.Label