Update samy.ps1

This commit is contained in:
2025-12-21 00:02:58 -05:00
parent edb63b2981
commit b9a9c7c8f2

View File

@@ -782,9 +782,6 @@ 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"
} }
Write-LogHybrid "Tooltip type check running. Tasks loaded: $($Global:SamyTasks.Count)" Info UI -LogToEvent
# DEBUG: detect any Tooltip that is an array/list (will cause "mega-tooltips") # DEBUG: detect any Tooltip that is an array/list (will cause "mega-tooltips")
$Global:SamyTasks | ForEach-Object { $Global:SamyTasks | ForEach-Object {
if ($_.PSObject.Properties.Name -contains 'Tooltip' -and if ($_.PSObject.Properties.Name -contains 'Tooltip' -and
@@ -794,7 +791,6 @@ $Global:SamyTasks | ForEach-Object {
Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent
} }
} }
Write-LogHybrid "Dumping tooltip lengths (to spot mega-tooltips)..." Info UI -LogToEvent
$Global:SamyTasks | ForEach-Object { $Global:SamyTasks | ForEach-Object {
$tip = if ($_.PSObject.Properties.Name -contains 'Tooltip') { [string]$_.Tooltip } else { "" } $tip = if ($_.PSObject.Properties.Name -contains 'Tooltip') { [string]$_.Tooltip } else { "" }
@@ -1209,7 +1205,6 @@ function Send-JSON {
} }
} }
#endregion HTTP responder helpers #endregion HTTP responder helpers
function Invoke-TasksCompleted { function Invoke-TasksCompleted {