Update samy.ps1
This commit is contained in:
6
samy.ps1
6
samy.ps1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user