|
|
@@ -54,7 +54,7 @@ Function Add-StructuredTray{
|
|
|
if (-not $definition){
|
|
|
$definition = Get-Content $Config -Raw | ConvertFrom-Yaml
|
|
|
}
|
|
|
- if ($ParentTray -eq $null){
|
|
|
+ if ($null -eq $ParentTray){
|
|
|
|
|
|
# Hide Console
|
|
|
if ($definition.HideConsole -eq $true){
|
|
|
@@ -109,7 +109,7 @@ Function Add-StructuredTray{
|
|
|
$Menu_Script = New-Object System.Windows.Forms.MenuItem
|
|
|
$Menu_Script.Text = $definition.Text
|
|
|
$Menu_Script.Tag = $definition
|
|
|
- if (-not ($definition.Enabled -eq $null)){
|
|
|
+ if ($null -ne $definition.Enabled){
|
|
|
$Menu_Script.Enabled = $definition.Enabled
|
|
|
}
|
|
|
if ($definition.Command){
|