diff --git a/samy.ps1 b/samy.ps1 index f152e4f..490e4e0 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -778,6 +778,16 @@ if (-not $Global:SamyTasks) { throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl" } +# DEBUG: detect any Tooltip that is an array/list (will cause "mega-tooltips") +$Global:SamyTasks | ForEach-Object { + if ($_.PSObject.Properties.Name -contains 'Tooltip' -and + $_.Tooltip -is [System.Collections.IEnumerable] -and + -not ($_.Tooltip -is [string])) { + + Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent + } +} + #endregion building the Menu #region Publish-Checkboxes