Update samy.ps1

This commit is contained in:
2025-12-20 22:50:14 -05:00
parent dbff6151c2
commit 085515fa4c

View File

@@ -778,6 +778,16 @@ if (-not $Global:SamyTasks) {
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl" 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 #endregion building the Menu
#region Publish-Checkboxes #region Publish-Checkboxes