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