From 085515fa4ced67b5e6fcf9bcba935d14e88b5ed8 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 20 Dec 2025 22:50:14 -0500 Subject: [PATCH] Update samy.ps1 --- samy.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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