diff --git a/samy.ps1 b/samy.ps1 index 89907d6..da1e0e7 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -718,6 +718,12 @@ function Get-SamyTasks { [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 if ([string]::IsNullOrWhiteSpace($tooltip)) { $tooltip = [string]$t.Label